pub struct LineMetadata {
pub pieces: Vec<Piece>,
pub is_pure_ascii: bool,
pub byte_length: usize,
pub char_count: usize,
}Expand description
Metadata for a logical line
Fields§
§pieces: Vec<Piece>List of Pieces referenced by this line (fragments may span multiple pieces)
is_pure_ascii: boolFast path flag: whether this is pure ASCII
byte_length: usizeByte length of this line
char_count: usizeCharacter count of this line
Implementations§
Trait Implementations§
Source§impl Clone for LineMetadata
impl Clone for LineMetadata
Source§fn clone(&self) -> LineMetadata
fn clone(&self) -> LineMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 LineMetadata
impl Debug for LineMetadata
Auto Trait Implementations§
impl Freeze for LineMetadata
impl RefUnwindSafe for LineMetadata
impl Send for LineMetadata
impl Sync for LineMetadata
impl Unpin for LineMetadata
impl UnwindSafe for LineMetadata
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