[][src]Struct gluon_base::metadata::BaseMetadata

pub struct BaseMetadata<'ast> {
    pub metadata: Option<&'ast mut Metadata>,
}

Fields

metadata: Option<&'ast mut Metadata>

Implementations

impl<'ast> BaseMetadata<'ast>[src]

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

pub fn merge(&mut self, metadata: BaseMetadata<'ast>)[src]

pub fn comment(&self) -> Option<&Comment>[src]

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

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

pub fn to_metadata(&self) -> Metadata[src]

Trait Implementations

impl<'ast, Id> AstClone<'ast, Id> for BaseMetadata<'ast> where
    Id: Clone
[src]

impl<'ast> Debug for BaseMetadata<'ast>[src]

impl<'ast> Default for BaseMetadata<'ast>[src]

impl<'ast> Eq for BaseMetadata<'ast>[src]

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

impl<'ast> Hash for BaseMetadata<'ast>[src]

impl<'ast> PartialEq<BaseMetadata<'ast>> for BaseMetadata<'ast>[src]

impl<'ast> StructuralEq for BaseMetadata<'ast>[src]

impl<'ast> StructuralPartialEq for BaseMetadata<'ast>[src]

Auto Trait Implementations

impl<'ast> RefUnwindSafe for BaseMetadata<'ast>

impl<'ast> Send for BaseMetadata<'ast>

impl<'ast> Sync for BaseMetadata<'ast>

impl<'ast> Unpin for BaseMetadata<'ast>

impl<'ast> !UnwindSafe for BaseMetadata<'ast>

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, 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.