#[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 Freeze for CallbackArgStructField
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