[−][src]Struct gluon_base::metadata::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]
fn alloc(self, arena: &'ast Arena<'ast, Id>) -> &'ast mut Self
[src]
fn alloc_extend(
iter: impl IntoIterator<Item = Self>,
arena: &'ast Arena<'ast, Id>
) -> &'ast mut [Self]
[src]
iter: impl IntoIterator<Item = Self>,
arena: &'ast Arena<'ast, Id>
) -> &'ast mut [Self]
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]
fn from(meta: BaseMetadata) -> Self
[src]
impl Hash for Metadata
[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 PartialEq<Metadata> for Metadata
[src]
impl StructuralEq for Metadata
[src]
impl StructuralPartialEq for Metadata
[src]
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
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> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,