#[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
fn bad_initializer_value( field_type: String, value: &InitializerDefault, ) -> BindResult<ValidatedDefaultValue>
impl Eq for BasicType
impl StructuralPartialEq for BasicType
Auto Trait Implementations§
impl Freeze for BasicType
impl RefUnwindSafe for BasicType
impl !Send for BasicType
impl !Sync for BasicType
impl Unpin for BasicType
impl UnwindSafe for BasicType
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