pub struct Line<'input> {
pub content: &'input str,
pub offset: usize,
pub indent: usize,
pub break_type: BreakType,
pub pos: Pos,
}Expand description
A single logical line extracted from the input.
Fields§
§content: &'input strThe line content slice, excluding the terminator.
offset: usizeByte offset of content within the original input string.
indent: usizeNumber of leading SPACE (\x20) characters. Leading tabs do not
contribute to indent — they are a YAML syntax error in indentation
context and are reported by the lexer, not here.
break_type: BreakTypeThe terminator that ends this line.
pos: PosPosition of the first byte of this line (after BOM stripping on line 1).
Trait Implementations§
impl<'input> Eq for Line<'input>
impl<'input> StructuralPartialEq for Line<'input>
Auto Trait Implementations§
impl<'input> Freeze for Line<'input>
impl<'input> RefUnwindSafe for Line<'input>
impl<'input> Send for Line<'input>
impl<'input> Sync for Line<'input>
impl<'input> Unpin for Line<'input>
impl<'input> UnsafeUnpin for Line<'input>
impl<'input> UnwindSafe for Line<'input>
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