pub struct MetadataCollection { /* private fields */ }
Expand description
A utility type to collect metadata for each attribute, unified by its name.
Implementations§
Source§impl MetadataCollection
impl MetadataCollection
Mutation
Sourcepub fn update_from_list(&mut self, list: &mut List<Attributes>)
pub fn update_from_list(&mut self, list: &mut List<Attributes>)
Assign order ids to each attribute either in macros (along with macros themselves) or attributes of patterns, and store them in this collection.
Must be called before querying matches.
Trait Implementations§
Source§impl Clone for MetadataCollection
impl Clone for MetadataCollection
Source§fn clone(&self) -> MetadataCollection
fn clone(&self) -> MetadataCollection
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetadataCollection
impl Debug for MetadataCollection
Source§impl Default for MetadataCollection
impl Default for MetadataCollection
Source§fn default() -> MetadataCollection
fn default() -> MetadataCollection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetadataCollection
impl RefUnwindSafe for MetadataCollection
impl Send for MetadataCollection
impl Sync for MetadataCollection
impl Unpin for MetadataCollection
impl UnwindSafe for MetadataCollection
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