pub struct SyntaxTextObjectIds {
pub around_function: TextObjectId,
pub inner_function: TextObjectId,
pub around_class: TextObjectId,
pub inner_class: TextObjectId,
pub around_parameter: TextObjectId,
pub inner_parameter: TextObjectId,
pub around_loop: TextObjectId,
pub inner_loop: TextObjectId,
}Expand description
The eight structural text-object [TextObjectId]s, returned by
register_syntax_text_objects so the host can bind their chords
(af/if/ac/ic/aa/ia/al/il) into the operator-pending
and Visual text-object keymap tables (mirrors how the builtin
objects’ ids drive register_text_object_resolutions).
Fields§
§around_function: TextObjectId§inner_function: TextObjectId§around_class: TextObjectId§inner_class: TextObjectId§around_parameter: TextObjectId§inner_parameter: TextObjectId§around_loop: TextObjectId§inner_loop: TextObjectIdTrait Implementations§
Source§impl Clone for SyntaxTextObjectIds
impl Clone for SyntaxTextObjectIds
Source§fn clone(&self) -> SyntaxTextObjectIds
fn clone(&self) -> SyntaxTextObjectIds
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 moreimpl Copy for SyntaxTextObjectIds
Auto Trait Implementations§
impl Freeze for SyntaxTextObjectIds
impl RefUnwindSafe for SyntaxTextObjectIds
impl Send for SyntaxTextObjectIds
impl Sync for SyntaxTextObjectIds
impl Unpin for SyntaxTextObjectIds
impl UnsafeUnpin for SyntaxTextObjectIds
impl UnwindSafe for SyntaxTextObjectIds
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more