#[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
impl StructuralPartialEq for FunctionReturnValue
Auto Trait Implementations§
impl Freeze for FunctionReturnValue
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