#[non_exhaustive]pub enum CallbackArgument {
Basic(BasicType),
String(StringType),
Iterator(AbstractIteratorHandle),
Class(ClassDeclarationHandle),
Struct(UniversalOr<CallbackArgStructField>),
}
Expand description
Types allowed in callback function arguments
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)
Class(ClassDeclarationHandle)
Struct(UniversalOr<CallbackArgStructField>)
Trait Implementations§
Source§impl Clone for CallbackArgument
impl Clone for CallbackArgument
Source§fn clone(&self) -> CallbackArgument
fn clone(&self) -> CallbackArgument
Returns a duplicate 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 CallbackArgument
impl Debug for CallbackArgument
Source§impl From<BasicType> for CallbackArgument
impl From<BasicType> for CallbackArgument
Source§impl From<DurationType> for CallbackArgument
impl From<DurationType> for CallbackArgument
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 CallbackArgument
impl From<Handle<AbstractIterator<Unvalidated>>> for CallbackArgument
Source§fn from(x: AbstractIteratorHandle) -> Self
fn from(x: AbstractIteratorHandle) -> Self
Converts to this type from the input type.
Source§impl From<Handle<ClassDeclaration>> for CallbackArgument
impl From<Handle<ClassDeclaration>> for CallbackArgument
Source§fn from(x: ClassDeclarationHandle) -> Self
fn from(x: ClassDeclarationHandle) -> Self
Converts to this type from the input type.
Source§impl From<Handle<Enum<Unvalidated>>> for CallbackArgument
impl From<Handle<Enum<Unvalidated>>> for CallbackArgument
Source§impl From<Handle<Struct<CallbackArgStructField, Unvalidated>>> for CallbackArgument
impl From<Handle<Struct<CallbackArgStructField, Unvalidated>>> for CallbackArgument
Source§fn from(x: CallbackArgStructHandle) -> Self
fn from(x: CallbackArgStructHandle) -> Self
Converts to this type from the input type.
Source§impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for CallbackArgument
impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for CallbackArgument
Source§fn from(x: UniversalStructHandle) -> Self
fn from(x: UniversalStructHandle) -> Self
Converts to this type from the input type.
Source§impl From<Primitive> for CallbackArgument
impl From<Primitive> for CallbackArgument
Source§impl From<StringType> for CallbackArgument
impl From<StringType> for CallbackArgument
Source§fn from(x: StringType) -> Self
fn from(x: StringType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CallbackArgument
impl PartialEq for CallbackArgument
impl StructuralPartialEq for CallbackArgument
Auto Trait Implementations§
impl Freeze for CallbackArgument
impl RefUnwindSafe for CallbackArgument
impl !Send for CallbackArgument
impl !Sync for CallbackArgument
impl Unpin for CallbackArgument
impl UnwindSafe for CallbackArgument
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