Struct rustc_span::LineInfo
source · pub struct LineInfo {
pub line_index: usize,
pub start_col: CharPos,
pub end_col: CharPos,
}
Fields§
§line_index: usize
Index of line, starting from 0.
start_col: CharPos
Column in line where span begins, starting from 0.
end_col: CharPos
Column in line where span ends, starting from 0, exclusive.
Trait Implementations§
source§impl PartialEq<LineInfo> for LineInfo
impl PartialEq<LineInfo> for LineInfo
impl Copy for LineInfo
impl Eq for LineInfo
impl StructuralEq for LineInfo
impl StructuralPartialEq for LineInfo
Auto Trait Implementations§
impl RefUnwindSafe for LineInfo
impl Send for LineInfo
impl Sync for LineInfo
impl Unpin for LineInfo
impl UnwindSafe for LineInfo
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes