#[non_exhaustive]pub enum DefaultCallbackReturnValue {
Void,
Basic(BasicValue),
InitializedStruct(ZeroParameterStructInitializer),
}
Expand description
Like CallbackReturnValue, but with a value
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 DefaultCallbackReturnValue
impl Clone for DefaultCallbackReturnValue
Source§fn clone(&self) -> DefaultCallbackReturnValue
fn clone(&self) -> DefaultCallbackReturnValue
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 DefaultCallbackReturnValue
impl Debug for DefaultCallbackReturnValue
Source§impl From<DurationValue> for DefaultCallbackReturnValue
impl From<DurationValue> for DefaultCallbackReturnValue
Source§fn from(x: DurationValue) -> Self
fn from(x: DurationValue) -> Self
Converts to this type from the input type.
Source§impl From<EnumValue> for DefaultCallbackReturnValue
impl From<EnumValue> for DefaultCallbackReturnValue
Source§impl From<PrimitiveValue> for DefaultCallbackReturnValue
impl From<PrimitiveValue> for DefaultCallbackReturnValue
Source§fn from(x: PrimitiveValue) -> Self
fn from(x: PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<ZeroParameterStructInitializer> for DefaultCallbackReturnValue
impl From<ZeroParameterStructInitializer> for DefaultCallbackReturnValue
Source§fn from(x: ZeroParameterStructInitializer) -> Self
fn from(x: ZeroParameterStructInitializer) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DefaultCallbackReturnValue
impl RefUnwindSafe for DefaultCallbackReturnValue
impl !Send for DefaultCallbackReturnValue
impl !Sync for DefaultCallbackReturnValue
impl Unpin for DefaultCallbackReturnValue
impl UnwindSafe for DefaultCallbackReturnValue
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