pub enum MetadataType {
Show 27 variants
Bool,
Int,
Int8,
Int16,
Int32,
Int64,
Uint,
UintPtr,
Uint8,
Uint16,
Uint32,
Uint64,
Float32,
Float64,
Complex64,
Complex128,
UnsafePtr,
Str,
Array(Meta, usize),
Slice(Meta),
Struct(Fields),
Signature(SigMetadata),
Map(Meta, Meta),
Interface(Fields),
Channel(ChannelType, Meta),
Named(Methods, Meta),
None,
}
Variants§
Bool
Int
Int8
Int16
Int32
Int64
Uint
UintPtr
Uint8
Uint16
Uint32
Uint64
Float32
Float64
Complex64
Complex128
UnsafePtr
Str
Array(Meta, usize)
Slice(Meta)
Struct(Fields)
Signature(SigMetadata)
Map(Meta, Meta)
Interface(Fields)
Channel(ChannelType, Meta)
Named(Methods, Meta)
None
Implementations§
Source§impl MetadataType
impl MetadataType
pub fn as_signature(&self) -> &SigMetadata
pub fn as_interface(&self) -> &Fields
pub fn as_channel(&self) -> (&ChannelType, &Meta)
pub fn as_array(&self) -> (&Meta, &usize)
pub fn as_slice(&self) -> &Meta
pub fn as_map(&self) -> (&Meta, &Meta)
pub fn as_struct(&self) -> &Fields
pub fn as_named(&self) -> (&Methods, &Meta)
pub fn as_named_mut(&mut self) -> (&mut Methods, &mut Meta)
pub fn unwrap_named<'a, 'b: 'a>(&'a self, metas: &'b MetadataObjs) -> &'a Self
pub fn identical(&self, other: &Self, metas: &MetadataObjs) -> bool
Trait Implementations§
Source§impl Clone for MetadataType
impl Clone for MetadataType
Source§fn clone(&self) -> MetadataType
fn clone(&self) -> MetadataType
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 moreAuto Trait Implementations§
impl Freeze for MetadataType
impl !RefUnwindSafe for MetadataType
impl !Send for MetadataType
impl !Sync for MetadataType
impl Unpin for MetadataType
impl !UnwindSafe for MetadataType
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