#[non_exhaustive]pub enum Primitive {
Bool,
U8,
S8,
U16,
S16,
U32,
S32,
U64,
S64,
Float,
Double,
}
Expand description
primitive types in most languages
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl From<Primitive> for CallbackArgStructField
impl From<Primitive> for CallbackArgStructField
Source§impl From<Primitive> for CallbackArgument
impl From<Primitive> for CallbackArgument
Source§impl From<Primitive> for CallbackReturnValue
impl From<Primitive> for CallbackReturnValue
Source§impl From<Primitive> for FunctionArgStructField
impl From<Primitive> for FunctionArgStructField
Source§impl From<Primitive> for FunctionArgument
impl From<Primitive> for FunctionArgument
Source§impl From<Primitive> for FunctionReturnStructField
impl From<Primitive> for FunctionReturnStructField
Source§impl From<Primitive> for FunctionReturnValue
impl From<Primitive> for FunctionReturnValue
Source§impl From<Primitive> for IteratorItemType
impl From<Primitive> for IteratorItemType
Source§impl From<Primitive> for UniversalStructField
impl From<Primitive> for UniversalStructField
Source§impl From<PrimitiveValue> for Primitive
impl From<PrimitiveValue> for Primitive
Source§fn from(x: PrimitiveValue) -> Self
fn from(x: PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl InitializerValidator for Primitive
impl InitializerValidator for Primitive
Source§fn validate_default_value(
&self,
value: &InitializerDefault,
) -> BindResult<ValidatedDefaultValue>
fn validate_default_value( &self, value: &InitializerDefault, ) -> BindResult<ValidatedDefaultValue>
Check that the value is valid for the type
fn bad_initializer_value( field_type: String, value: &InitializerDefault, ) -> BindResult<ValidatedDefaultValue>
impl Copy for Primitive
impl Eq for Primitive
impl StructuralPartialEq for Primitive
Auto Trait Implementations§
impl Freeze for Primitive
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnwindSafe for Primitive
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more