Enum oo_bindgen::model::CallbackArgument
source · #[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 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 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
source§fn eq(&self, other: &CallbackArgument) -> bool
fn eq(&self, other: &CallbackArgument) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CallbackArgument
Auto Trait Implementations§
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