#[non_exhaustive]pub enum CallbackReturnValue {
Basic(BasicType),
Struct(UniversalStructHandle),
}
Expand description
types that can be returned from callback functions
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)
Struct(UniversalStructHandle)
Trait Implementations§
Source§impl Clone for CallbackReturnValue
impl Clone for CallbackReturnValue
Source§fn clone(&self) -> CallbackReturnValue
fn clone(&self) -> CallbackReturnValue
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 CallbackReturnValue
impl Debug for CallbackReturnValue
Source§impl From<BasicType> for CallbackReturnValue
impl From<BasicType> for CallbackReturnValue
Source§impl From<DurationType> for CallbackReturnValue
impl From<DurationType> for CallbackReturnValue
Source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
Source§impl From<Handle<Enum<Unvalidated>>> for CallbackReturnValue
impl From<Handle<Enum<Unvalidated>>> for CallbackReturnValue
Source§impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for CallbackReturnValue
impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for CallbackReturnValue
Source§fn from(x: UniversalStructHandle) -> Self
fn from(x: UniversalStructHandle) -> Self
Converts to this type from the input type.
Source§impl From<Primitive> for CallbackReturnValue
impl From<Primitive> for CallbackReturnValue
Source§impl PartialEq for CallbackReturnValue
impl PartialEq for CallbackReturnValue
impl Eq for CallbackReturnValue
impl StructuralPartialEq for CallbackReturnValue
Auto Trait Implementations§
impl Freeze for CallbackReturnValue
impl RefUnwindSafe for CallbackReturnValue
impl !Send for CallbackReturnValue
impl !Sync for CallbackReturnValue
impl Unpin for CallbackReturnValue
impl UnwindSafe for CallbackReturnValue
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