pub struct Target {
pub position: ByteOffset,
pub inclusive: bool,
pub linewise: bool,
}Expand description
The destination of a motion and the rules for using it with an operator.
Fields§
§position: ByteOffsetDestination in UTF-8 bytes from the start of the document.
inclusive: boolWhether an operator includes the grapheme at the far end of the motion.
linewise: boolWhether an operator acts on the full logical lines between the endpoints.
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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