pub enum Context {
Boundary,
Ineligible,
}Expand description
What the adapter verified before the caret. It matters only when no word is owned: a letter
starts a word only at Context::Boundary, so the session never takes over the tail of a
token already in the document.
Variants§
Boundary
Start of document or whitespace.
Ineligible
Anything else, or a prefix the adapter could not establish.
Trait Implementations§
impl Copy for Context
impl Eq for Context
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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