pub struct SelectRange<'a> { /* private fields */ }Expand description
Fluent API builder for operations on a selected range
Implementations§
Source§impl<'a> SelectRange<'a>
impl<'a> SelectRange<'a>
Sourcepub fn replace_with(self, text: &str) -> Result<&'a mut EditorDocument>
pub fn replace_with(self, text: &str) -> Result<&'a mut EditorDocument>
Replace the selected range with text
Sourcepub fn delete(self) -> Result<&'a mut EditorDocument>
pub fn delete(self) -> Result<&'a mut EditorDocument>
Delete the selected range
Sourcepub fn wrap_with_tag(
self,
open_tag: &str,
close_tag: &str,
) -> Result<&'a mut EditorDocument>
pub fn wrap_with_tag( self, open_tag: &str, close_tag: &str, ) -> Result<&'a mut EditorDocument>
Wrap the selection with ASS tags
Sourcepub fn indent(self, spaces: usize) -> Result<&'a mut EditorDocument>
Available on crate feature rope only.
pub fn indent(self, spaces: usize) -> Result<&'a mut EditorDocument>
rope only.Indent the selected lines
Sourcepub fn unindent(self, spaces: usize) -> Result<&'a mut EditorDocument>
Available on crate feature rope only.
pub fn unindent(self, spaces: usize) -> Result<&'a mut EditorDocument>
rope only.Unindent the selected lines
Auto Trait Implementations§
impl<'a> Freeze for SelectRange<'a>
impl<'a> !RefUnwindSafe for SelectRange<'a>
impl<'a> Send for SelectRange<'a>
impl<'a> !Sync for SelectRange<'a>
impl<'a> Unpin for SelectRange<'a>
impl<'a> !UnwindSafe for SelectRange<'a>
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