Enum oo_bindgen::model::Primitive
source · #[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