Struct gix_attributes::search::MetadataCollection
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)