Struct litcheck_core::text::Newline
source · pub struct Newline {
pub offset: usize,
pub ty: LineEnding,
}
Expand description
Represents a newline location and style
Fields§
§offset: usize
§ty: LineEnding
Implementations§
source§impl Newline
impl Newline
pub fn offset(&self) -> usize
pub fn next_line_start(&self) -> usize
pub fn is_crlf(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Newline
impl RefUnwindSafe for Newline
impl Send for Newline
impl Sync for Newline
impl Unpin for Newline
impl UnwindSafe for Newline
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