pub struct Normalized<'a> { /* private fields */ }Expand description
Normalized text with a mapping back to byte offsets in the original.
Implementations§
Source§impl<'a> Normalized<'a>
impl<'a> Normalized<'a>
Sourcepub fn original(&self) -> &'a str
pub fn original(&self) -> &'a str
The text that was passed to Normalized::new.
Sourcepub fn removed_invisible(&self) -> usize
pub fn removed_invisible(&self) -> usize
Number of invisible characters that were removed.
Trait Implementations§
Source§impl<'a> Clone for Normalized<'a>
impl<'a> Clone for Normalized<'a>
Auto Trait Implementations§
impl<'a> Forget for Normalized<'a>
impl<'a> Freeze for Normalized<'a>
impl<'a> RefUnwindSafe for Normalized<'a>
impl<'a> Send for Normalized<'a>
impl<'a> Sync for Normalized<'a>
impl<'a> Unpin for Normalized<'a>
impl<'a> UnsafeUnpin for Normalized<'a>
impl<'a> UnwindSafe for Normalized<'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