Struct diagnostic::Line
source · pub struct Line {
pub offset: u32,
pub length: u32,
/* private fields */
}Expand description
A type representing a single line of a Source.
Fields§
§offset: u32Get the offset of this line in the original Source (i.e: the number of characters that precede it).
length: u32Get the character length of this line.
Implementations§
Trait Implementations§
source§impl PartialEq for Line
impl PartialEq for Line
impl Eq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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