pub struct SourceLine {
pub number: u32,
pub text: String,
pub is_target: bool,
}Expand description
One numbered line of the surrounding source window.
Fields§
§number: u32One-based line number in the file.
text: StringLine text without its trailing newline.
is_target: boolWhether this is the requested target line.
Trait Implementations§
Source§impl Clone for SourceLine
impl Clone for SourceLine
Source§fn clone(&self) -> SourceLine
fn clone(&self) -> SourceLine
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 SourceLine
impl Debug for SourceLine
Source§impl<'de> Deserialize<'de> for SourceLine
impl<'de> Deserialize<'de> for SourceLine
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 SourceLine
Source§impl PartialEq for SourceLine
impl PartialEq for SourceLine
Source§fn eq(&self, other: &SourceLine) -> bool
fn eq(&self, other: &SourceLine) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceLine
impl Serialize for SourceLine
impl StructuralPartialEq for SourceLine
Auto Trait Implementations§
impl Freeze for SourceLine
impl RefUnwindSafe for SourceLine
impl Send for SourceLine
impl Sync for SourceLine
impl Unpin for SourceLine
impl UnsafeUnpin for SourceLine
impl UnwindSafe for SourceLine
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