[][src]Struct gluon_base::metadata::Metadata

pub struct Metadata {
    pub definition: Option<Symbol>,
    pub comment: Option<Comment>,
    pub attributes: Vec<Attribute>,
    pub args: Vec<Argument<Symbol>>,
    pub module: BTreeMap<String, Arc<Metadata>>,
}

Fields

definition: Option<Symbol>comment: Option<Comment>attributes: Vec<Attribute>args: Vec<Argument<Symbol>>module: BTreeMap<String, Arc<Metadata>>

Implementations

impl Metadata[src]

pub fn has_data(&self) -> bool[src]

pub fn merge(self, other: Metadata) -> Metadata[src]

pub fn merge_with(&mut self, other: Metadata)[src]

pub fn merge_ref(self, other: &Metadata) -> Self[src]

pub fn merge_with_ref(&mut self, other: &Metadata)[src]

pub fn merge_with_base(self, other: &BaseMetadata<'_>) -> Self[src]

pub fn merge_with_base_ref(&mut self, other: &BaseMetadata<'_>)[src]

pub fn get_attribute(&self, name: &str) -> Option<&str>[src]

pub fn attributes(&self) -> impl Iterator<Item = &Attribute>[src]

Trait Implementations

impl<'ast, Id> AstAlloc<'ast, Id> for Metadata[src]

impl<'ast, Id> AstClone<'ast, Id> for Metadata[src]

impl Clone for Metadata[src]

impl Debug for Metadata[src]

impl Default for Metadata[src]

impl Eq for Metadata[src]

impl<'_> From<BaseMetadata<'_>> for Metadata[src]

impl Hash for Metadata[src]

impl PartialEq<Metadata> for Metadata[src]

impl StructuralEq for Metadata[src]

impl StructuralPartialEq for Metadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Id> AsId<Id> for Id where
    Id: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.