Enum oo_bindgen::model::BasicType
source · #[non_exhaustive]
pub enum BasicType {
Primitive(Primitive),
Duration(DurationType),
Enum(Handle<Enum<Unvalidated>>),
}
Expand description
Basic types are trivially copyable. They can be used in almost any context within the API model
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<BasicType> for CallbackArgStructField
impl From<BasicType> for CallbackArgStructField
source§impl From<BasicType> for CallbackArgument
impl From<BasicType> for CallbackArgument
source§impl From<BasicType> for CallbackReturnValue
impl From<BasicType> for CallbackReturnValue
source§impl From<BasicType> for FunctionArgStructField
impl From<BasicType> for FunctionArgStructField
source§impl From<BasicType> for FunctionArgument
impl From<BasicType> for FunctionArgument
source§impl From<BasicType> for FunctionReturnStructField
impl From<BasicType> for FunctionReturnStructField
source§impl From<BasicType> for FunctionReturnValue
impl From<BasicType> for FunctionReturnValue
source§impl From<BasicType> for UniversalStructField
impl From<BasicType> for UniversalStructField
source§impl From<DurationType> for BasicType
impl From<DurationType> for BasicType
source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
source§impl From<Handle<Enum<Unvalidated>>> for BasicType
impl From<Handle<Enum<Unvalidated>>> for BasicType
source§fn from(x: EnumHandle) -> Self
fn from(x: EnumHandle) -> Self
Converts to this type from the input type.
source§impl InitializerValidator for BasicType
impl InitializerValidator for BasicType
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