pub struct Base64;Implementations§
Source§impl Base64
impl Base64
pub fn encode(bytes: &[u8]) -> Result<String, String>
pub fn decode(text: String) -> Result<Vec<u8>, String>
pub fn decode_sequence(text: String) -> Result<Vec<u8>, String>
pub fn encode_sequence(bytes: &[u8]) -> Result<String, String>
pub fn convert_base64_char_to_number(char: char) -> Result<u8, String>
pub fn get_base64_char_list() -> Vec<char>
pub fn convert_number_to_base64_char(number: u8) -> Result<char, String>
Auto Trait Implementations§
impl Freeze for Base64
impl RefUnwindSafe for Base64
impl Send for Base64
impl Sync for Base64
impl Unpin for Base64
impl UnsafeUnpin for Base64
impl UnwindSafe for Base64
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