Enum interoptopus::patterns::TypePattern [−][src]
pub enum TypePattern {
AsciiPointer,
APIVersion,
FFIErrorEnum(FFIErrorEnum),
Slice(CompositeType),
SliceMut(CompositeType),
Option(CompositeType),
Bool,
NamedCallback(NamedCallback),
}
Expand description
A pattern on a type level.
Variants
FFIErrorEnum(FFIErrorEnum)
Tuple Fields of FFIErrorEnum
0: FFIErrorEnum
Slice(CompositeType)
Tuple Fields of Slice
SliceMut(CompositeType)
Tuple Fields of SliceMut
Option(CompositeType)
Tuple Fields of Option
NamedCallback(NamedCallback)
Tuple Fields of NamedCallback
Implementations
For languages like C that don’t care about these patterns, give the C-equivalent fallback type.
This function will never return a CType::Pattern
variant.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for TypePattern
impl Send for TypePattern
impl Sync for TypePattern
impl Unpin for TypePattern
impl UnwindSafe for TypePattern
Blanket Implementations
Mutably borrows from an owned value. Read more