Enum oo_bindgen::model::CallbackArgStructField
source · #[non_exhaustive]
pub enum CallbackArgStructField {
Basic(BasicType),
Iterator(AbstractIteratorHandle),
Struct(UniversalOr<CallbackArgStructField>),
}
Expand description
Types that can be used as a callback argument
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 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 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