Enum capnp::introspect::TypeVariant
source · pub enum TypeVariant {
Show 19 variants
Void,
Bool,
Int8,
Int16,
Int32,
Int64,
UInt8,
UInt16,
UInt32,
UInt64,
Float32,
Float64,
Text,
Data,
Struct(RawBrandedStructSchema),
AnyPointer,
Capability,
Enum(RawEnumSchema),
List(Type),
}
Expand description
A Type
unfolded one level. Suitable for pattern matching. Can be trivially
converted to Type
via the From
/Into
traits.
Variants§
Void
Bool
Int8
Int16
Int32
Int64
UInt8
UInt16
UInt32
UInt64
Float32
Float64
Text
Data
Struct(RawBrandedStructSchema)
AnyPointer
Capability
Enum(RawEnumSchema)
List(Type)
Trait Implementations§
source§impl Clone for TypeVariant
impl Clone for TypeVariant
source§fn clone(&self) -> TypeVariant
fn clone(&self) -> TypeVariant
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 From<TypeVariant> for Type
impl From<TypeVariant> for Type
source§fn from(tv: TypeVariant) -> Type
fn from(tv: TypeVariant) -> Type
Converts to this type from the input type.
source§impl PartialEq for TypeVariant
impl PartialEq for TypeVariant
source§fn eq(&self, other: &TypeVariant) -> bool
fn eq(&self, other: &TypeVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TypeVariant
impl Eq for TypeVariant
impl StructuralPartialEq for TypeVariant
Auto Trait Implementations§
impl Freeze for TypeVariant
impl RefUnwindSafe for TypeVariant
impl Send for TypeVariant
impl Sync for TypeVariant
impl Unpin for TypeVariant
impl UnwindSafe for TypeVariant
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