Enum ed25519_dalek::pkcs8::spki::der::pem::LineEnding
pub enum LineEnding {
CR,
LF,
CRLF,
}
Available on crate feature
pkcs8
only.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§
§impl LineEnding
impl LineEnding
pub fn as_bytes(self) -> &'static [u8] ⓘ
pub fn as_bytes(self) -> &'static [u8] ⓘ
Get the byte serialization of this LineEnding
.
pub fn len(self) -> usize
pub fn len(self) -> usize
Get the encoded length of this LineEnding
.
Trait Implementations§
§impl Clone for LineEnding
impl Clone for LineEnding
§fn clone(&self) -> LineEnding
fn clone(&self) -> LineEnding
Returns a copy 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 more§impl Debug for LineEnding
impl Debug for LineEnding
§impl Default for LineEnding
impl Default for LineEnding
§fn default() -> LineEnding
fn default() -> LineEnding
Returns the “default value” for a type. Read more
§impl Ord for LineEnding
impl Ord for LineEnding
§impl PartialEq for LineEnding
impl PartialEq for LineEnding
§fn eq(&self, other: &LineEnding) -> bool
fn eq(&self, other: &LineEnding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for LineEnding
impl PartialOrd for LineEnding
§fn partial_cmp(&self, other: &LineEnding) -> Option<Ordering>
fn partial_cmp(&self, other: &LineEnding) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 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§
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