Enum base64ct::LineEnding
source · [−]pub enum LineEnding {
CR,
LF,
CRLF,
}
Expand description
Line endings: variants of newline characters that can be used with Base64.
Use LineEnding::default
to get an appropriate line ending for the
current operating system.
Variants
CR
Carriage return: \r
(Pre-OS X Macintosh)
LF
Line feed: \n
(Unix OSes)
CRLF
Carriage return + line feed: \r\n
(Windows)
Implementations
sourceimpl LineEnding
impl LineEnding
Trait Implementations
sourceimpl Clone for LineEnding
impl Clone for LineEnding
sourcefn clone(&self) -> LineEnding
fn clone(&self) -> LineEnding
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LineEnding
impl Debug for LineEnding
sourceimpl Default for LineEnding
impl Default for LineEnding
sourcefn default() -> LineEnding
fn default() -> LineEnding
Returns the “default value” for a type. Read more
sourceimpl Ord for LineEnding
impl Ord for LineEnding
sourcefn cmp(&self, other: &LineEnding) -> Ordering
fn cmp(&self, other: &LineEnding) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<LineEnding> for LineEnding
impl PartialEq<LineEnding> for LineEnding
sourcefn eq(&self, other: &LineEnding) -> bool
fn eq(&self, other: &LineEnding) -> bool
sourceimpl PartialOrd<LineEnding> for LineEnding
impl PartialOrd<LineEnding> for LineEnding
sourcefn partial_cmp(&self, other: &LineEnding) -> Option<Ordering>
fn partial_cmp(&self, other: &LineEnding) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LineEnding
impl Eq for LineEnding
impl StructuralEq for LineEnding
impl StructuralPartialEq for LineEnding
Auto Trait Implementations
impl RefUnwindSafe for LineEnding
impl Send for LineEnding
impl Sync for LineEnding
impl Unpin for LineEnding
impl UnwindSafe for LineEnding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more