pub enum Alphabet {
Standard,
StandardNoPadding,
Url,
UrlNoPadding,
}Expand description
The base64 alphabet used for encoding and decoding.
| Variant | Characters | Padding |
|---|---|---|
Standard | A-Za-z0-9+/ | = |
StandardNoPadding | A-Za-z0-9+/ | none |
Url | A-Za-z0-9-_ | = |
UrlNoPadding | A-Za-z0-9-_ | none |
§Example
use base64::Alphabet;
let encoded = base64::encode(b"hello", Alphabet::Url);
assert_eq!(encoded, "aGVsbG8=");Variants§
Trait Implementations§
impl Copy for Alphabet
impl Eq for Alphabet
impl StructuralPartialEq for Alphabet
Auto Trait Implementations§
impl Freeze for Alphabet
impl RefUnwindSafe for Alphabet
impl Send for Alphabet
impl Sync for Alphabet
impl Unpin for Alphabet
impl UnsafeUnpin for Alphabet
impl UnwindSafe for Alphabet
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