pub struct NormalizedLineEndingMap { /* private fields */ }Expand description
Maps byte offsets in LF-normalized content back to the original input.
rumdl normalizes CRLF to LF while linting. Machine-readable fixes, however, must address the bytes supplied by the caller, including mixed-line-ending input. Each entry records the normalized offset of a newline whose preceding carriage return was removed.
Implementations§
Trait Implementations§
Source§impl Clone for NormalizedLineEndingMap
impl Clone for NormalizedLineEndingMap
Source§fn clone(&self) -> NormalizedLineEndingMap
fn clone(&self) -> NormalizedLineEndingMap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NormalizedLineEndingMap
impl Debug for NormalizedLineEndingMap
Source§impl Default for NormalizedLineEndingMap
impl Default for NormalizedLineEndingMap
Source§fn default() -> NormalizedLineEndingMap
fn default() -> NormalizedLineEndingMap
Returns the “default value” for a type. Read more
impl Eq for NormalizedLineEndingMap
Source§impl PartialEq for NormalizedLineEndingMap
impl PartialEq for NormalizedLineEndingMap
impl StructuralPartialEq for NormalizedLineEndingMap
Auto Trait Implementations§
impl Freeze for NormalizedLineEndingMap
impl RefUnwindSafe for NormalizedLineEndingMap
impl Send for NormalizedLineEndingMap
impl Sync for NormalizedLineEndingMap
impl Unpin for NormalizedLineEndingMap
impl UnsafeUnpin for NormalizedLineEndingMap
impl UnwindSafe for NormalizedLineEndingMap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.