Enum oo_bindgen::model::FunctionArgStructField
source · #[non_exhaustive]pub enum FunctionArgStructField {
Basic(BasicType),
String(StringType),
Interface(AsynchronousInterface),
Struct(UniversalOr<FunctionArgStructField>),
}
Expand description
Types that can be used in a function struct, some of which might have a default value
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.
Basic(BasicType)
String(StringType)
Interface(AsynchronousInterface)
Struct(UniversalOr<FunctionArgStructField>)
Trait Implementations§
source§impl Clone for FunctionArgStructField
impl Clone for FunctionArgStructField
source§fn clone(&self) -> FunctionArgStructField
fn clone(&self) -> FunctionArgStructField
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FunctionArgStructField
impl Debug for FunctionArgStructField
source§impl From<AsynchronousInterface> for FunctionArgStructField
impl From<AsynchronousInterface> for FunctionArgStructField
source§fn from(x: AsynchronousInterface) -> Self
fn from(x: AsynchronousInterface) -> Self
Converts to this type from the input type.
source§impl From<BasicType> for FunctionArgStructField
impl From<BasicType> for FunctionArgStructField
source§impl From<DurationType> for FunctionArgStructField
impl From<DurationType> for FunctionArgStructField
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 FunctionArgStructField
impl From<Handle<Enum<Unvalidated>>> for FunctionArgStructField
source§impl From<Handle<Struct<FunctionArgStructField, Unvalidated>>> for FunctionArgStructField
impl From<Handle<Struct<FunctionArgStructField, Unvalidated>>> for FunctionArgStructField
source§fn from(x: FunctionArgStructHandle) -> Self
fn from(x: FunctionArgStructHandle) -> Self
Converts to this type from the input type.
source§impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for FunctionArgStructField
impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for FunctionArgStructField
source§fn from(x: UniversalStructHandle) -> Self
fn from(x: UniversalStructHandle) -> Self
Converts to this type from the input type.
source§impl From<Primitive> for FunctionArgStructField
impl From<Primitive> for FunctionArgStructField
source§impl From<StringType> for FunctionArgStructField
impl From<StringType> for FunctionArgStructField
source§fn from(x: StringType) -> Self
fn from(x: StringType) -> Self
Converts to this type from the input type.
source§impl InitializerValidator for FunctionArgStructField
impl InitializerValidator for FunctionArgStructField
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>
source§impl StructFieldType for FunctionArgStructField
impl StructFieldType for FunctionArgStructField
source§fn create_struct_type(
v: Handle<Struct<FunctionArgStructField, Unvalidated>>
) -> StructType<Unvalidated>
fn create_struct_type( v: Handle<Struct<FunctionArgStructField, Unvalidated>> ) -> StructType<Unvalidated>
convert a structure to a StructType
Auto Trait Implementations§
impl RefUnwindSafe for FunctionArgStructField
impl !Send for FunctionArgStructField
impl !Sync for FunctionArgStructField
impl Unpin for FunctionArgStructField
impl UnwindSafe for FunctionArgStructField
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