pub struct Line<'a> {
pub text: &'a str,
pub start_offset: u64,
pub end_offset: u64,
}Expand description
送进界定器的一行。
text 原样带上(是否含行尾换行由调用方决定),start_offset/end_offset 是它在
来源里的字节区间 —— 界定器只搬运、不改写,所以调用方拿到的记录区间能与来源对账。
Fields§
§text: &'a str§start_offset: u64§end_offset: u64Trait Implementations§
impl<'a> Copy for Line<'a>
impl<'a> Eq for Line<'a>
impl<'a> StructuralPartialEq for Line<'a>
Auto Trait Implementations§
impl<'a> Freeze for Line<'a>
impl<'a> RefUnwindSafe for Line<'a>
impl<'a> Send for Line<'a>
impl<'a> Sync for Line<'a>
impl<'a> Unpin for Line<'a>
impl<'a> UnsafeUnpin for Line<'a>
impl<'a> UnwindSafe for Line<'a>
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