pub struct Base58 { /* private fields */ }Implementations§
Source§impl Base58
impl Base58
pub const LETTERS: [u8; 58]
pub const OCTETS: [u8; 128]
pub fn new(bytes: &[u8]) -> Self
pub fn parse(s: &str) -> Result<Self>
pub fn random_bytes(len: usize) -> Self
pub fn random_str(len: usize) -> Self
pub fn encode(bytes: &[u8]) -> String
pub fn decode(s: &str) -> Result<Vec<u8>>
pub const fn as_bytes(&self) -> &[u8] ⓘ
pub const fn as_str(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Base58
impl<'de> Deserialize<'de> for Base58
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Base58
Source§impl Ord for Base58
impl Ord for Base58
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Base58
impl PartialOrd for Base58
impl StructuralPartialEq for Base58
Auto Trait Implementations§
impl Freeze for Base58
impl RefUnwindSafe for Base58
impl Send for Base58
impl Sync for Base58
impl Unpin for Base58
impl UnsafeUnpin for Base58
impl UnwindSafe for Base58
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