pub struct TagKey<'a> { /* private fields */ }Expand description
Identifies what a tag resolves to within one source: its form, handle,
suffix, and the %TAG directive (by position) its handle names. Equal
keys resolve to equal text (TagSource::key).
The directive is identified by the address of the source text
holding it and its offset there, so a key is meaningful only while
that text is alive and unchanged: compare keys of tags read from the
same, living source (one event stream’s text, or one syntax tree
between edits). After the text is dropped (or a tree is edited), its
address may be reused and a stale key could equal a new one. The
borrow 'a keeps the handle and suffix alive, not the directive’s
text.
Trait Implementations§
impl<'a> Copy for TagKey<'a>
impl<'a> Eq for TagKey<'a>
impl<'a> StructuralPartialEq for TagKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for TagKey<'a>
impl<'a> RefUnwindSafe for TagKey<'a>
impl<'a> Send for TagKey<'a>
impl<'a> Sync for TagKey<'a>
impl<'a> Unpin for TagKey<'a>
impl<'a> UnsafeUnpin for TagKey<'a>
impl<'a> UnwindSafe for TagKey<'a>
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