From 7996d7f85b3aaa8795b46577d0a0fcc0fc427bc7 Mon Sep 17 00:00:00 2001 From: oh-yes-0-fps Date: Fri, 23 Aug 2024 00:39:37 -0400 Subject: [PATCH] bumped crate version --- Cargo.toml | 2 +- src/value/traits.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index aa9fcac..1f606b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "frclib-core" -version = "0.2.2" +version = "0.2.3" edition = "2021" license = "MIT" description = "A collection of utilities to be used across the FRC in rust ecosystem" diff --git a/src/value/traits.rs b/src/value/traits.rs index b9b7326..2813717 100644 --- a/src/value/traits.rs +++ b/src/value/traits.rs @@ -17,6 +17,11 @@ impl + Send + Sync> IntoFrcValue for T { /// A trait allowing static type checking on some types that implement [``IntoFrcValue``](crate::value::IntoFrcValue). #[allow(unused)] pub trait StaticallyFrcTyped: IntoFrcValue { + /// The type of the value, used for static type checking. const TYPE: FrcType; + /// Whether the value could be void. + /// + /// This may be superseeded by type unions but for now this will be used. + /// If this is true think of it as adding and Option<> around the type. const COULD_BE_VOID: bool = false; } \ No newline at end of file