#[non_exhaustive]pub enum FunctionArgument {
Basic(BasicType),
String(StringType),
Collection(CollectionHandle),
Struct(UniversalOr<FunctionArgStructField>),
StructRef(FunctionArgStructDeclaration),
ClassRef(ClassDeclarationHandle),
Interface(InterfaceHandle),
}
Expand description
Types that can be used as native 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)
Collection(CollectionHandle)
Struct(UniversalOr<FunctionArgStructField>)
StructRef(FunctionArgStructDeclaration)
ClassRef(ClassDeclarationHandle)
Interface(InterfaceHandle)
Trait Implementations§
Source§impl Clone for FunctionArgument
impl Clone for FunctionArgument
Source§fn clone(&self) -> FunctionArgument
fn clone(&self) -> FunctionArgument
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 FunctionArgument
impl Debug for FunctionArgument
Source§impl From<AsynchronousInterface> for FunctionArgument
impl From<AsynchronousInterface> for FunctionArgument
Source§fn from(x: AsynchronousInterface) -> Self
fn from(x: AsynchronousInterface) -> Self
Converts to this type from the input type.
Source§impl From<BasicType> for FunctionArgument
impl From<BasicType> for FunctionArgument
Source§impl From<DurationType> for FunctionArgument
impl From<DurationType> for FunctionArgument
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 FunctionArgument
impl From<Handle<ClassDeclaration>> for FunctionArgument
Source§fn from(x: ClassDeclarationHandle) -> Self
fn from(x: ClassDeclarationHandle) -> Self
Converts to this type from the input type.
Source§impl From<Handle<Collection<Unvalidated>>> for FunctionArgument
impl From<Handle<Collection<Unvalidated>>> for FunctionArgument
Source§fn from(x: CollectionHandle) -> Self
fn from(x: CollectionHandle) -> Self
Converts to this type from the input type.
Source§impl From<Handle<Enum<Unvalidated>>> for FunctionArgument
impl From<Handle<Enum<Unvalidated>>> for FunctionArgument
Source§impl From<Handle<Struct<FunctionArgStructField, Unvalidated>>> for FunctionArgument
impl From<Handle<Struct<FunctionArgStructField, Unvalidated>>> for FunctionArgument
Source§fn from(x: FunctionArgStructHandle) -> Self
fn from(x: FunctionArgStructHandle) -> Self
Converts to this type from the input type.
Source§impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for FunctionArgument
impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for FunctionArgument
Source§fn from(x: UniversalStructHandle) -> Self
fn from(x: UniversalStructHandle) -> Self
Converts to this type from the input type.
Source§impl From<Primitive> for FunctionArgument
impl From<Primitive> for FunctionArgument
Source§impl From<StringType> for FunctionArgument
impl From<StringType> for FunctionArgument
Source§fn from(x: StringType) -> Self
fn from(x: StringType) -> Self
Converts to this type from the input type.
Source§impl From<SynchronousInterface> for FunctionArgument
impl From<SynchronousInterface> for FunctionArgument
Source§fn from(x: SynchronousInterface) -> Self
fn from(x: SynchronousInterface) -> Self
Converts to this type from the input type.
Source§impl From<TypedStructDeclaration<FunctionArgStructField>> for FunctionArgument
impl From<TypedStructDeclaration<FunctionArgStructField>> for FunctionArgument
Source§fn from(x: FunctionArgStructDeclaration) -> Self
fn from(x: FunctionArgStructDeclaration) -> Self
Converts to this type from the input type.
Source§impl From<TypedStructDeclaration<UniversalStructField>> for FunctionArgument
impl From<TypedStructDeclaration<UniversalStructField>> for FunctionArgument
Source§fn from(x: UniversalStructDeclaration) -> Self
fn from(x: UniversalStructDeclaration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FunctionArgument
impl RefUnwindSafe for FunctionArgument
impl !Send for FunctionArgument
impl !Sync for FunctionArgument
impl Unpin for FunctionArgument
impl UnwindSafe for FunctionArgument
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