pub struct SourceWindow {
pub start_line: u32,
pub end_line: u32,
pub target_line: u32,
pub lines: Vec<SourceLine>,
}Expand description
A window of source lines centered on the target line.
Fields§
§start_line: u32One-based first line in the window.
end_line: u32One-based last line in the window.
target_line: u32One-based target line the window is centered on.
lines: Vec<SourceLine>The numbered window lines.
Trait Implementations§
Source§impl Clone for SourceWindow
impl Clone for SourceWindow
Source§fn clone(&self) -> SourceWindow
fn clone(&self) -> SourceWindow
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 moreSource§impl Debug for SourceWindow
impl Debug for SourceWindow
Source§impl<'de> Deserialize<'de> for SourceWindow
impl<'de> Deserialize<'de> for SourceWindow
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
impl Eq for SourceWindow
Source§impl PartialEq for SourceWindow
impl PartialEq for SourceWindow
Source§fn eq(&self, other: &SourceWindow) -> bool
fn eq(&self, other: &SourceWindow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceWindow
impl Serialize for SourceWindow
impl StructuralPartialEq for SourceWindow
Auto Trait Implementations§
impl Freeze for SourceWindow
impl RefUnwindSafe for SourceWindow
impl Send for SourceWindow
impl Sync for SourceWindow
impl Unpin for SourceWindow
impl UnsafeUnpin for SourceWindow
impl UnwindSafe for SourceWindow
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