pub enum MetadataType {
Show 23 variants
Bool,
Int,
Int8,
Int16,
Int32,
Int64,
Uint,
Uint8,
Uint16,
Uint32,
Uint64,
Float32,
Float64,
Complex64,
Complex128,
Str(GosValue),
SliceOrArray(GosMetadata, usize),
Struct(Fields, GosValue),
Signature(SigMetadata),
Map(GosMetadata, GosMetadata),
Interface(Fields),
Channel(ChannelType, GosMetadata),
Named(Methods, GosMetadata),
}
Variants§
Bool
Int
Int8
Int16
Int32
Int64
Uint
Uint8
Uint16
Uint32
Uint64
Float32
Float64
Complex64
Complex128
Str(GosValue)
SliceOrArray(GosMetadata, usize)
Struct(Fields, GosValue)
Signature(SigMetadata)
Map(GosMetadata, GosMetadata)
Interface(Fields)
Channel(ChannelType, GosMetadata)
Named(Methods, GosMetadata)
Implementations§
Source§impl MetadataType
impl MetadataType
pub fn as_signature(&self) -> &SigMetadata
pub fn as_interface(&self) -> &Fields
pub fn as_channel(&self) -> (&ChannelType, &GosMetadata)
pub fn semantic_eq( &self, other: &Self, mc: MetaCategory, 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 duplicate 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