pub enum StrTrim {
Both,
Leading,
Trailing,
}Expand description
Which ends a trim takes characters off.
ISO 20.24 spells six functions here and the kernel knows three,
because the whole of what the six disagree about is settled before a
plan is built. TRIM takes one character and raises 22027 when it
is handed more, and BTRIM, LTRIM and RTRIM take a set; that is
a question about what was written, not about what the loop does, so
the compiler asks it against the written set and this is left with
the only thing that varies a row at a time.
Variants§
Both
TRIM and BTRIM: both ends.
Leading
TRIM LEADING and LTRIM: the front.
Trailing
TRIM TRAILING and RTRIM: the back.
Implementations§
Trait Implementations§
impl Copy for StrTrim
impl Eq for StrTrim
impl StructuralPartialEq for StrTrim
Auto Trait Implementations§
impl Freeze for StrTrim
impl RefUnwindSafe for StrTrim
impl Send for StrTrim
impl Sync for StrTrim
impl Unpin for StrTrim
impl UnsafeUnpin for StrTrim
impl UnwindSafe for StrTrim
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