pub enum Metadatum {
Integer(u64),
Index(MetadataIndex),
String(String),
Struct(String, Vec<Metadatum>),
List(Vec<MetadataIndex>),
}
Variants
Integer(u64)
Index(MetadataIndex)
String(String)
Struct(String, Vec<Metadatum>)
List(Vec<MetadataIndex>)
Implementations
sourceimpl Metadatum
impl Metadatum
pub fn unwrap_integer(&self) -> Option<u64>
pub fn unwrap_index(&self) -> Option<MetadataIndex>
pub fn unwrap_string(&self) -> Option<&str>
pub fn unwrap_struct<'a>(
&'a self,
tag: &str,
num_fields: usize
) -> Option<&'a [Metadatum]>
Trait Implementations
sourceimpl PartialEq<Metadatum> for Metadatum
impl PartialEq<Metadatum> for Metadatum
impl Eq for Metadatum
impl StructuralEq for Metadatum
impl StructuralPartialEq for Metadatum
Auto Trait Implementations
impl RefUnwindSafe for Metadatum
impl Send for Metadatum
impl Sync for Metadatum
impl Unpin for Metadatum
impl UnwindSafe for Metadatum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more