Struct gluon_base::metadata::Metadata
source · 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§
source§impl Metadata
impl Metadata
pub fn has_data(&self) -> bool
pub fn merge(self, other: Metadata) -> Metadata
pub fn merge_with(&mut self, other: Metadata)
pub fn merge_ref(self, other: &Metadata) -> Self
pub fn merge_with_ref(&mut self, other: &Metadata)
pub fn merge_with_base(self, other: &BaseMetadata<'_>) -> Self
pub fn merge_with_base_ref(&mut self, other: &BaseMetadata<'_>)
pub fn get_attribute(&self, name: &str) -> Option<&str>
pub fn attributes(&self) -> impl Iterator<Item = &Attribute>
Trait Implementations§
source§impl<'ast, Id> AstAlloc<'ast, Id> for Metadata
impl<'ast, Id> AstAlloc<'ast, Id> for Metadata
fn alloc(self, arena: &'ast Arena<'ast, Id>) -> &'ast mut Self
fn alloc_extend( iter: impl IntoIterator<Item = Self>, arena: &'ast Arena<'ast, Id> ) -> &'ast mut [Self]
source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<BaseMetadata<'_>> for Metadata
impl From<BaseMetadata<'_>> for Metadata
source§fn from(meta: BaseMetadata<'_>) -> Self
fn from(meta: BaseMetadata<'_>) -> Self
Converts to this type from the input type.
source§impl PartialEq for Metadata
impl PartialEq for Metadata
impl Eq for Metadata
impl StructuralEq for Metadata
impl StructuralPartialEq for Metadata
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more