pub struct Token<T>{
pub is_left_joinable: bool,
pub is_right_joinable: bool,
/* private fields */
}Expand description
A token with a normalized form (used for diffing) and an original form (used when applying operations). Joinability flags control whether adjacent insertions interleave or group.
UTF-8 compatible.
Fields§
§is_left_joinable: boolWhether the token is semantically joinable with the previous token
is_right_joinable: boolWhether the token is semantically joinable with the next token
Implementations§
Trait Implementations§
Source§impl From<&str> for Token<String>
Trivial implementation of Token when the normalized form is the same as the
original string
impl From<&str> for Token<String>
Trivial implementation of Token when the normalized form is the same as the original string
Auto Trait Implementations§
impl<T> Freeze for Token<T>where
T: Freeze,
impl<T> RefUnwindSafe for Token<T>where
T: RefUnwindSafe,
impl<T> Send for Token<T>where
T: Send,
impl<T> Sync for Token<T>where
T: Sync,
impl<T> Unpin for Token<T>where
T: Unpin,
impl<T> UnsafeUnpin for Token<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Token<T>where
T: UnwindSafe,
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