Enum oo_bindgen::model::FunctionReturnValue
source · #[non_exhaustive]pub enum FunctionReturnValue {
Basic(BasicType),
PrimitiveRef(PrimitiveRef),
String(StringType),
ClassRef(ClassDeclarationHandle),
Struct(UniversalOr<FunctionReturnStructField>),
StructRef(UniversalDeclarationOr<FunctionReturnStructField>),
}
Expand description
types that can be returns from native 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)
PrimitiveRef(PrimitiveRef)
String(StringType)
ClassRef(ClassDeclarationHandle)
Struct(UniversalOr<FunctionReturnStructField>)
StructRef(UniversalDeclarationOr<FunctionReturnStructField>)
Trait Implementations§
source§impl Clone for FunctionReturnValue
impl Clone for FunctionReturnValue
source§fn clone(&self) -> FunctionReturnValue
fn clone(&self) -> FunctionReturnValue
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 FunctionReturnValue
impl Debug for FunctionReturnValue
source§impl From<BasicType> for FunctionReturnValue
impl From<BasicType> for FunctionReturnValue
source§impl From<DurationType> for FunctionReturnValue
impl From<DurationType> for FunctionReturnValue
source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
source§impl From<Handle<ClassDeclaration>> for FunctionReturnValue
impl From<Handle<ClassDeclaration>> for FunctionReturnValue
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 FunctionReturnValue
impl From<Handle<Enum<Unvalidated>>> for FunctionReturnValue
source§impl From<Handle<Struct<FunctionReturnStructField, Unvalidated>>> for FunctionReturnValue
impl From<Handle<Struct<FunctionReturnStructField, Unvalidated>>> for FunctionReturnValue
source§fn from(x: FunctionReturnStructHandle) -> Self
fn from(x: FunctionReturnStructHandle) -> Self
Converts to this type from the input type.
source§impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for FunctionReturnValue
impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for FunctionReturnValue
source§fn from(x: UniversalStructHandle) -> Self
fn from(x: UniversalStructHandle) -> Self
Converts to this type from the input type.
source§impl From<Primitive> for FunctionReturnValue
impl From<Primitive> for FunctionReturnValue
source§impl From<PrimitiveRef> for FunctionReturnValue
impl From<PrimitiveRef> for FunctionReturnValue
source§fn from(x: PrimitiveRef) -> Self
fn from(x: PrimitiveRef) -> Self
Converts to this type from the input type.
source§impl From<StringType> for FunctionReturnValue
impl From<StringType> for FunctionReturnValue
source§fn from(_: StringType) -> Self
fn from(_: StringType) -> Self
Converts to this type from the input type.
source§impl From<TypedStructDeclaration<FunctionReturnStructField>> for FunctionReturnValue
impl From<TypedStructDeclaration<FunctionReturnStructField>> for FunctionReturnValue
source§fn from(x: FunctionReturnStructDeclaration) -> Self
fn from(x: FunctionReturnStructDeclaration) -> Self
Converts to this type from the input type.
source§impl From<TypedStructDeclaration<UniversalStructField>> for FunctionReturnValue
impl From<TypedStructDeclaration<UniversalStructField>> for FunctionReturnValue
source§fn from(x: UniversalStructDeclaration) -> Self
fn from(x: UniversalStructDeclaration) -> Self
Converts to this type from the input type.
source§impl PartialEq for FunctionReturnValue
impl PartialEq for FunctionReturnValue
source§fn eq(&self, other: &FunctionReturnValue) -> bool
fn eq(&self, other: &FunctionReturnValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FunctionReturnValue
Auto Trait Implementations§
impl RefUnwindSafe for FunctionReturnValue
impl !Send for FunctionReturnValue
impl !Sync for FunctionReturnValue
impl Unpin for FunctionReturnValue
impl UnwindSafe for FunctionReturnValue
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