pub struct TextEditorReplaceResultBuilder(/* private fields */);Expand description
Builder for TextEditorReplaceResult.
Implementations§
Source§impl TextEditorReplaceResultBuilder
impl TextEditorReplaceResultBuilder
pub fn lines(self, value: impl Into<Vec<String>>) -> Self
pub fn new_lines(self, value: impl Into<i64>) -> Self
pub fn new_start(self, value: impl Into<i64>) -> Self
pub fn old_lines(self, value: impl Into<i64>) -> Self
pub fn old_start(self, value: impl Into<i64>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> TextEditorReplaceResult
pub fn build(self) -> TextEditorReplaceResult
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for TextEditorReplaceResultBuilder
impl RefUnwindSafe for TextEditorReplaceResultBuilder
impl Send for TextEditorReplaceResultBuilder
impl Sync for TextEditorReplaceResultBuilder
impl Unpin for TextEditorReplaceResultBuilder
impl UnsafeUnpin for TextEditorReplaceResultBuilder
impl UnwindSafe for TextEditorReplaceResultBuilder
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