#[non_exhaustive]pub enum FunctionArgStructField {
Basic(BasicType),
String(StringType),
Interface(AsynchronousInterface),
Struct(UniversalOr<FunctionArgStructField>),
}
Expand description
Types that can be used in a function struct, some of which might have a default 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.
Basic(BasicType)
String(StringType)
Interface(AsynchronousInterface)
Struct(UniversalOr<FunctionArgStructField>)
Trait Implementations§
Source§impl Clone for FunctionArgStructField
impl Clone for FunctionArgStructField
Source§fn clone(&self) -> FunctionArgStructField
fn clone(&self) -> FunctionArgStructField
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 FunctionArgStructField
impl Debug for FunctionArgStructField
Source§impl From<AsynchronousInterface> for FunctionArgStructField
impl From<AsynchronousInterface> for FunctionArgStructField
Source§fn from(x: AsynchronousInterface) -> Self
fn from(x: AsynchronousInterface) -> Self
Converts to this type from the input type.
Source§impl From<BasicType> for FunctionArgStructField
impl From<BasicType> for FunctionArgStructField
Source§impl From<DurationType> for FunctionArgStructField
impl From<DurationType> for FunctionArgStructField
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 FunctionArgStructField
impl From<Handle<Enum<Unvalidated>>> for FunctionArgStructField
Source§impl From<Handle<Struct<FunctionArgStructField, Unvalidated>>> for FunctionArgStructField
impl From<Handle<Struct<FunctionArgStructField, Unvalidated>>> for FunctionArgStructField
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 FunctionArgStructField
impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for FunctionArgStructField
Source§fn from(x: UniversalStructHandle) -> Self
fn from(x: UniversalStructHandle) -> Self
Converts to this type from the input type.
Source§impl From<Primitive> for FunctionArgStructField
impl From<Primitive> for FunctionArgStructField
Source§impl From<StringType> for FunctionArgStructField
impl From<StringType> for FunctionArgStructField
Source§fn from(x: StringType) -> Self
fn from(x: StringType) -> Self
Converts to this type from the input type.
Source§impl InitializerValidator for FunctionArgStructField
impl InitializerValidator for FunctionArgStructField
Source§fn validate_default_value(
&self,
value: &InitializerDefault,
) -> BindResult<ValidatedDefaultValue>
fn validate_default_value( &self, value: &InitializerDefault, ) -> BindResult<ValidatedDefaultValue>
Check that the value is valid for the type
fn bad_initializer_value( field_type: String, value: &InitializerDefault, ) -> BindResult<ValidatedDefaultValue>
Source§impl StructFieldType for FunctionArgStructField
impl StructFieldType for FunctionArgStructField
Source§fn create_struct_type(
v: Handle<Struct<FunctionArgStructField, Unvalidated>>,
) -> StructType<Unvalidated>
fn create_struct_type( v: Handle<Struct<FunctionArgStructField, Unvalidated>>, ) -> StructType<Unvalidated>
convert a structure to a StructType
Auto Trait Implementations§
impl Freeze for FunctionArgStructField
impl RefUnwindSafe for FunctionArgStructField
impl !Send for FunctionArgStructField
impl !Sync for FunctionArgStructField
impl Unpin for FunctionArgStructField
impl UnwindSafe for FunctionArgStructField
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