Enum oo_bindgen::model::CallbackArgStructField
source · #[non_exhaustive]pub enum CallbackArgStructField {
Basic(BasicType),
String(StringType),
Iterator(AbstractIteratorHandle),
Struct(UniversalOr<CallbackArgStructField>),
}
Expand description
Types that can be used as a callback argument struct
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)
Iterator(AbstractIteratorHandle)
Struct(UniversalOr<CallbackArgStructField>)
Trait Implementations§
source§impl Clone for CallbackArgStructField
impl Clone for CallbackArgStructField
source§fn clone(&self) -> CallbackArgStructField
fn clone(&self) -> CallbackArgStructField
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 CallbackArgStructField
impl Debug for CallbackArgStructField
source§impl From<BasicType> for CallbackArgStructField
impl From<BasicType> for CallbackArgStructField
source§impl From<DurationType> for CallbackArgStructField
impl From<DurationType> for CallbackArgStructField
source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
source§impl From<Handle<AbstractIterator<Unvalidated>>> for CallbackArgStructField
impl From<Handle<AbstractIterator<Unvalidated>>> for CallbackArgStructField
source§fn from(x: AbstractIteratorHandle) -> Self
fn from(x: AbstractIteratorHandle) -> Self
Converts to this type from the input type.
source§impl From<Handle<Enum<Unvalidated>>> for CallbackArgStructField
impl From<Handle<Enum<Unvalidated>>> for CallbackArgStructField
source§impl From<Handle<Struct<CallbackArgStructField, Unvalidated>>> for CallbackArgStructField
impl From<Handle<Struct<CallbackArgStructField, Unvalidated>>> for CallbackArgStructField
source§fn from(x: CallbackArgStructHandle) -> Self
fn from(x: CallbackArgStructHandle) -> Self
Converts to this type from the input type.
source§impl From<Primitive> for CallbackArgStructField
impl From<Primitive> for CallbackArgStructField
source§impl From<StringType> for CallbackArgStructField
impl From<StringType> for CallbackArgStructField
source§fn from(x: StringType) -> Self
fn from(x: StringType) -> Self
Converts to this type from the input type.
source§impl InitializerValidator for CallbackArgStructField
impl InitializerValidator for CallbackArgStructField
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 CallbackArgStructField
impl StructFieldType for CallbackArgStructField
source§fn create_struct_type(
v: Handle<Struct<CallbackArgStructField, Unvalidated>>
) -> StructType<Unvalidated>
fn create_struct_type( v: Handle<Struct<CallbackArgStructField, Unvalidated>> ) -> StructType<Unvalidated>
convert a structure to a StructType
Auto Trait Implementations§
impl RefUnwindSafe for CallbackArgStructField
impl !Send for CallbackArgStructField
impl !Sync for CallbackArgStructField
impl Unpin for CallbackArgStructField
impl UnwindSafe for CallbackArgStructField
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