pub struct Base64Bcrypt;Expand description
bcrypt Base64 encoding.
./ [A-Z] [a-z] [0-9]
0x2e-0x2f, 0x41-0x5a, 0x61-0x7a, 0x30-0x39Trait Implementations§
Source§impl Alphabet for Base64Bcrypt
impl Alphabet for Base64Bcrypt
Source§const DECODER: &'static [DecodeStep]
const DECODER: &'static [DecodeStep]
Decoder passes
Source§const ENCODER: &'static [EncodeStep]
const ENCODER: &'static [EncodeStep]
Encoder passes
Source§type Unpadded = Base64Bcrypt
type Unpadded = Base64Bcrypt
Unpadded equivalent of this alphabet. Read more
Source§fn decode_6bits(src: u8) -> i16
fn decode_6bits(src: u8) -> i16
Decode 6-bits of a Base64 message.
Source§fn encode_3bytes(src: &[u8], dst: &mut [u8])
fn encode_3bytes(src: &[u8], dst: &mut [u8])
Encode 3-bytes of a Base64 message.
Source§fn encode_6bits(src: i16) -> u8
fn encode_6bits(src: i16) -> u8
Encode 6-bits of a Base64 message.
Source§impl Clone for Base64Bcrypt
impl Clone for Base64Bcrypt
Source§fn clone(&self) -> Base64Bcrypt
fn clone(&self) -> Base64Bcrypt
Returns a duplicate 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 moreSource§impl Debug for Base64Bcrypt
impl Debug for Base64Bcrypt
Source§impl Default for Base64Bcrypt
impl Default for Base64Bcrypt
Source§fn default() -> Base64Bcrypt
fn default() -> Base64Bcrypt
Returns the “default value” for a type. Read more
Source§impl Hash for Base64Bcrypt
impl Hash for Base64Bcrypt
Source§impl Ord for Base64Bcrypt
impl Ord for Base64Bcrypt
Source§fn cmp(&self, other: &Base64Bcrypt) -> Ordering
fn cmp(&self, other: &Base64Bcrypt) -> Ordering
1.21.0 · 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 PartialEq for Base64Bcrypt
impl PartialEq for Base64Bcrypt
Source§impl PartialOrd for Base64Bcrypt
impl PartialOrd for Base64Bcrypt
impl Copy for Base64Bcrypt
impl Eq for Base64Bcrypt
impl StructuralPartialEq for Base64Bcrypt
Auto Trait Implementations§
impl Freeze for Base64Bcrypt
impl RefUnwindSafe for Base64Bcrypt
impl Send for Base64Bcrypt
impl Sync for Base64Bcrypt
impl Unpin for Base64Bcrypt
impl UnwindSafe for Base64Bcrypt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Encoding for Twhere
T: Alphabet,
impl<T> Encoding for Twhere
T: Alphabet,
Source§fn decode(src: impl AsRef<[u8]>, dst: &mut [u8]) -> Result<&[u8], Error>
fn decode(src: impl AsRef<[u8]>, dst: &mut [u8]) -> Result<&[u8], Error>
Decode a Base64 string into the provided destination buffer.
Source§fn decode_in_place(buf: &mut [u8]) -> Result<&[u8], InvalidEncodingError>
fn decode_in_place(buf: &mut [u8]) -> Result<&[u8], InvalidEncodingError>
Decode a Base64 string in-place. Read more
Source§fn decode_vec(input: &str) -> Result<Vec<u8>, Error>
fn decode_vec(input: &str) -> Result<Vec<u8>, Error>
Decode a Base64 string into a byte vector.
Source§fn encode<'a>(
src: &[u8],
dst: &'a mut [u8],
) -> Result<&'a str, InvalidLengthError>
fn encode<'a>( src: &[u8], dst: &'a mut [u8], ) -> Result<&'a str, InvalidLengthError>
Encode the input byte slice as Base64. Read more