pub trait Value<const CONST: bool>: Sized {
type List: ListValue<CONST, Value = Self>;
type Object: ObjectValue<CONST, Value = Self>;
type Variable: Variable;
// Required method
fn as_ref(&self) -> ValueReference<'_, CONST, Self>;
// Provided method
fn can_coerce_string_value_to_enum() -> bool { ... }
}Required Associated Types§
type List: ListValue<CONST, Value = Self>
type Object: ObjectValue<CONST, Value = Self>
type Variable: Variable
Required Methods§
fn as_ref(&self) -> ValueReference<'_, CONST, Self>
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.