Struct modalkit::prelude::BoundaryTestContext
source · pub struct BoundaryTestContext {
pub current: char,
pub before: Option<char>,
pub after: Option<char>,
pub dir: MoveDir1D,
pub motion: bool,
pub count: usize,
}
Expand description
Contextual information given while searching for the boundary of a range.
Fields§
§current: char
The current candidate character for the object boundary search.
before: Option<char>
The character that comes before the candidate in the text.
after: Option<char>
The character that comes after the candidate in the text.
dir: MoveDir1D
The direction the search is moving in.
motion: bool
Whether we are performing this search as part of a cursor movement.
count: usize
How many boundaries we have left to find.
Auto Trait Implementations§
impl Freeze for BoundaryTestContext
impl RefUnwindSafe for BoundaryTestContext
impl Send for BoundaryTestContext
impl Sync for BoundaryTestContext
impl Unpin for BoundaryTestContext
impl UnwindSafe for BoundaryTestContext
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.