Struct gluon_base::metadata::Metadata [−][src]
pub struct Metadata { pub comment: Option<Comment>, pub attributes: Vec<Attribute>, pub args: Vec<Argument<Symbol>>, pub module: BTreeMap<String, Metadata>, }
Fields
comment: Option<Comment>
attributes: Vec<Attribute>
args: Vec<Argument<Symbol>>
module: BTreeMap<String, Metadata>
Methods
impl Metadata
[src]
impl Metadata
pub fn has_data(&self) -> bool
[src]
pub fn has_data(&self) -> bool
pub fn merge(self, other: Metadata) -> Metadata
[src]
pub fn merge(self, other: Metadata) -> Metadata
pub fn merge_with(&mut self, other: Metadata)
[src]
pub fn merge_with(&mut self, other: Metadata)
pub fn get_attribute(&self, name: &str) -> Option<&str>
[src]
pub fn get_attribute(&self, name: &str) -> Option<&str>
ⓘImportant traits for Box<R>pub fn attributes<'a>(&'a self) -> Box<Iterator<Item = &'a Attribute> + 'a>
[src]
ⓘImportant traits for Box<R>
pub fn attributes<'a>(&'a self) -> Box<Iterator<Item = &'a Attribute> + 'a>
Trait Implementations
impl Clone for Metadata
[src]
impl Clone for Metadata
fn clone(&self) -> Metadata
[src]
fn clone(&self) -> Metadata
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Metadata
[src]
impl Debug for Metadata
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Metadata
[src]
impl Default for Metadata
impl Eq for Metadata
[src]
impl Eq for Metadata
impl PartialEq for Metadata
[src]
impl PartialEq for Metadata