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 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 FileLineRange
Source§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
Auto Trait Implementations§
impl Freeze for FileLineRange
impl RefUnwindSafe for FileLineRange
impl Send for FileLineRange
impl Sync for FileLineRange
impl Unpin for FileLineRange
impl UnsafeUnpin 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