[−][src]Struct gluon_base::metadata::BaseMetadata
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]
Id: Clone,
impl<'ast> Debug for BaseMetadata<'ast>
[src]
impl<'ast> Default for BaseMetadata<'ast>
[src]
fn default() -> BaseMetadata<'ast>
[src]
impl<'ast> Eq for BaseMetadata<'ast>
[src]
impl<'_> From<BaseMetadata<'_>> for Metadata
[src]
fn from(meta: BaseMetadata<'_>) -> Self
[src]
impl<'ast> Hash for BaseMetadata<'ast>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'ast> PartialEq<BaseMetadata<'ast>> for BaseMetadata<'ast>
[src]
fn eq(&self, other: &BaseMetadata<'ast>) -> bool
[src]
fn ne(&self, other: &BaseMetadata<'ast>) -> bool
[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]
T: 'static + ?Sized,
impl<Id> AsId<Id> for Id where
Id: ?Sized,
[src]
Id: ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,