pub struct FileLineRange {
pub start: Option<NonZeroUsize>,
pub end: Option<NonZeroUsize>,
}
Expand description
Represents a range of lines in a file.
This struct is used to specify a start and end line for operations that work with line ranges.
Fields§
§start: Option<NonZeroUsize>
The start line number.
end: Option<NonZeroUsize>
The end line number.
Trait Implementations§
Source§impl Clone for FileLineRange
impl Clone for FileLineRange
Source§fn clone(&self) -> FileLineRange
fn clone(&self) -> FileLineRange
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileLineRange
impl Debug for FileLineRange
Source§impl<'de> Deserialize<'de> for FileLineRange
impl<'de> Deserialize<'de> for FileLineRange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FileLineRange
impl Serialize for FileLineRange
impl Copy for FileLineRange
Auto Trait Implementations§
impl Freeze for FileLineRange
impl RefUnwindSafe for FileLineRange
impl Send for FileLineRange
impl Sync for FileLineRange
impl Unpin for FileLineRange
impl UnwindSafe for FileLineRange
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