Struct Symbol
pub struct Symbol(/* private field */);
An ASCII printable byte suitable for use as a base64 symbol in an alphabet or as custom padding.
This doesn't mean that a particular symbol is used in any particular alphabet, just that it could be used in one.
Implementations
impl Symbol
const fn new(symbol: u8) -> Option<Self>Returns
Someifsymbolis a valid printable ASCII symbol, otherwiseNone.const fn as_u8(&self) -> u8Returns the symbol as an ASCII byte.
fn as_char(&self) -> charReturns the symbol as a char.
Trait Implementations
impl Clone for Symbol
fn clone(&self) -> Self
impl Copy for Symbol
impl Debug for Symbol
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Symbol
impl PartialEq for Symbol
fn eq(&self, other: &Self) -> bool