pub struct OwnedToken {
pub text: Arc<str>,
pub leading_delim: Option<char>,
pub trailing_delim: Option<char>,
}Expand description
Owned token stored inside a crate::Cluster.
Fields§
§text: Arc<str>The token text, reference-counted for cheap cloning across clusters.
leading_delim: Option<char>Path delimiter immediately preceding this sub-token, if any.
trailing_delim: Option<char>Path delimiter immediately following this sub-token, if any.
Trait Implementations§
Source§impl Clone for OwnedToken
impl Clone for OwnedToken
Source§fn clone(&self) -> OwnedToken
fn clone(&self) -> OwnedToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OwnedToken
impl Debug for OwnedToken
impl Eq for OwnedToken
Source§impl From<&Token<'_>> for OwnedToken
impl From<&Token<'_>> for OwnedToken
Source§impl PartialEq for OwnedToken
impl PartialEq for OwnedToken
Source§fn eq(&self, other: &OwnedToken) -> bool
fn eq(&self, other: &OwnedToken) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OwnedToken
Auto Trait Implementations§
impl Freeze for OwnedToken
impl RefUnwindSafe for OwnedToken
impl Send for OwnedToken
impl Sync for OwnedToken
impl Unpin for OwnedToken
impl UnsafeUnpin for OwnedToken
impl UnwindSafe for OwnedToken
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