pub struct TagsResolver { /* private fields */ }
Expand description
A resolver for tags.
Implementations§
Source§impl TagsResolver
impl TagsResolver
Sourcepub fn create_tag_set<I, T>(&mut self, tags: I) -> Option<SharedTagSet>
pub fn create_tag_set<I, T>(&mut self, tags: I) -> Option<SharedTagSet>
Creates a new tag set from the given tags.
This will intern the tags, and then return a shared tag set. If the interner is full, and heap allocations are
not allowed, then this will return None
.
If heap allocations are allowed, then this will return a shared tag set, and the tag set will be cached.
Resolves the origin tags for the given origin.
This will return the origin tags for the given origin, or an empty tag set if no origin tags resolver is set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TagsResolver
impl !RefUnwindSafe for TagsResolver
impl Send for TagsResolver
impl Sync for TagsResolver
impl Unpin for TagsResolver
impl !UnwindSafe for TagsResolver
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Track for T
impl<T> Track for T
§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
Instruments this type by attaching the given allocation group token, returning a
Tracked
wrapper. Read more§fn in_current_allocation_group(self) -> Tracked<Self>
fn in_current_allocation_group(self) -> Tracked<Self>
Instruments this type by attaching the current allocation group, returning a
Tracked
wrapper. Read more