Struct rust_web_server::core::base64::Base64
source · 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 RefUnwindSafe for Base64
impl Send for Base64
impl Sync for Base64
impl Unpin 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