pub struct LineEndingMapper { /* private fields */ }Expand description
Stateless byte mapper that applies a single LineEnding rule.
Implementations§
Source§impl LineEndingMapper
impl LineEndingMapper
Sourcepub const fn new(rule: LineEnding) -> Self
pub const fn new(rule: LineEnding) -> Self
Builds a mapper that applies rule on every call to
Mapper::map.
Sourcepub const fn rule(&self) -> LineEnding
pub const fn rule(&self) -> LineEnding
Returns the rule this mapper was configured with.
Trait Implementations§
Source§impl Clone for LineEndingMapper
impl Clone for LineEndingMapper
Source§fn clone(&self) -> LineEndingMapper
fn clone(&self) -> LineEndingMapper
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 LineEndingMapper
impl Debug for LineEndingMapper
Source§impl Default for LineEndingMapper
impl Default for LineEndingMapper
Source§fn default() -> LineEndingMapper
fn default() -> LineEndingMapper
Returns the “default value” for a type. Read more
Source§impl Mapper for LineEndingMapper
impl Mapper for LineEndingMapper
impl Copy for LineEndingMapper
Auto Trait Implementations§
impl Freeze for LineEndingMapper
impl RefUnwindSafe for LineEndingMapper
impl Send for LineEndingMapper
impl Sync for LineEndingMapper
impl Unpin for LineEndingMapper
impl UnsafeUnpin for LineEndingMapper
impl UnwindSafe for LineEndingMapper
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