pub struct ViewOptions { /* private fields */ }Expand description
Optional view parameters.
Implementations§
Source§impl ViewOptions
impl ViewOptions
pub fn new() -> Self
Sourcepub fn view_range(self, start_line: i64, end_line: i64) -> Self
pub fn view_range(self, start_line: i64, end_line: i64) -> Self
[start_line, end_line], 1-indexed.
pub fn description(self, description: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ViewOptions
impl Clone for ViewOptions
Source§impl Debug for ViewOptions
impl Debug for ViewOptions
Auto Trait Implementations§
impl Freeze for ViewOptions
impl RefUnwindSafe for ViewOptions
impl Send for ViewOptions
impl Sync for ViewOptions
impl Unpin for ViewOptions
impl UnsafeUnpin for ViewOptions
impl UnwindSafe for ViewOptions
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