pub struct TaggedString {
pub token: String,
pub tag: String,
}Expand description
Tagged string for linearization.
Pairs a token with a tag for tracking origins in linearized output.
Fields§
§token: StringToken.
tag: StringTag.
Implementations§
Trait Implementations§
Source§impl Clone for TaggedString
impl Clone for TaggedString
Source§fn clone(&self) -> TaggedString
fn clone(&self) -> TaggedString
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TaggedString
impl RefUnwindSafe for TaggedString
impl Send for TaggedString
impl Sync for TaggedString
impl Unpin for TaggedString
impl UnwindSafe for TaggedString
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