[−][src]Struct subtle_encoding::base64::Base64
Base64 Encoding (traditional non-URL-safe RFC 4648 version)
Character set: [A-Z], [a-z], [0-9], +, /
Trait Implementations
impl Encoding for Base64[src]
impl Encoding for Base64fn encode_to_slice(&self, src: &[u8], dst: &mut [u8]) -> Result<usize, Error>[src]
fn encode_to_slice(&self, src: &[u8], dst: &mut [u8]) -> Result<usize, Error>fn encoded_len(&self, bytes: &[u8]) -> usize[src]
fn encoded_len(&self, bytes: &[u8]) -> usizefn decode_to_slice(&self, src: &[u8], dst: &mut [u8]) -> Result<usize, Error>[src]
fn decode_to_slice(&self, src: &[u8], dst: &mut [u8]) -> Result<usize, Error>fn decoded_len(&self, bytes: &[u8]) -> Result<usize, Error>[src]
fn decoded_len(&self, bytes: &[u8]) -> Result<usize, Error>fn encode<B: AsRef<[u8]>>(&self, bytes: B) -> Vec<u8>[src]
fn encode<B: AsRef<[u8]>>(&self, bytes: B) -> Vec<u8>Encode the given buffer, returning a Vec<u8>
fn encode_to_string<B: AsRef<[u8]>>(&self, bytes: B) -> Result<String, Error>[src]
fn encode_to_string<B: AsRef<[u8]>>(&self, bytes: B) -> Result<String, Error>Encode the given slice to a String with this Encoding. Read more
fn encode_to_writer<B, W>(
&self,
bytes: B,
writer: &mut W
) -> Result<usize, Error> where
B: AsRef<[u8]>,
W: Write, [src]
fn encode_to_writer<B, W>(
&self,
bytes: B,
writer: &mut W
) -> Result<usize, Error> where
B: AsRef<[u8]>,
W: Write, Encode the given slice with this Encoding, writing the result to the supplied io::Write type, returning the number of bytes written or a Error. Read more
fn encode_to_file<B, P>(&self, bytes: B, path: P) -> Result<File, Error> where
B: AsRef<[u8]>,
P: AsRef<Path>, [src]
fn encode_to_file<B, P>(&self, bytes: B, path: P) -> Result<File, Error> where
B: AsRef<[u8]>,
P: AsRef<Path>, Encode self and write it to a file at the given path, returning the resulting File or a Error. Read more
fn decode<B: AsRef<[u8]>>(&self, encoded_bytes: B) -> Result<Vec<u8>, Error>[src]
fn decode<B: AsRef<[u8]>>(&self, encoded_bytes: B) -> Result<Vec<u8>, Error>Decode the given buffer, returning a Vec<u8>
fn decode_from_str<S: AsRef<str>>(&self, encoded: S) -> Result<Vec<u8>, Error>[src]
fn decode_from_str<S: AsRef<str>>(&self, encoded: S) -> Result<Vec<u8>, Error>Decode the given string-alike type with this Encoding, returning the decoded value or a Error. Read more
fn decode_from_reader<R: Read>(&self, reader: &mut R) -> Result<Vec<u8>, Error>[src]
fn decode_from_reader<R: Read>(&self, reader: &mut R) -> Result<Vec<u8>, Error>Decode the data read from the given io::Read type with this Encoding, returning the decoded value or a Error. Read more
fn decode_from_file<P: AsRef<Path>>(&self, path: P) -> Result<Vec<u8>, Error>[src]
fn decode_from_file<P: AsRef<Path>>(&self, path: P) -> Result<Vec<u8>, Error>Read a file at the given path, decoding the data it contains using the provided Encoding, returning the decoded value or a Error. Read more
impl PartialEq<Base64> for Base64[src]
impl PartialEq<Base64> for Base64fn eq(&self, other: &Base64) -> bool[src]
fn eq(&self, other: &Base64) -> bool#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for Base64[src]
impl Eq for Base64impl Ord for Base64[src]
impl Ord for Base64fn cmp(&self, other: &Base64) -> Ordering[src]
fn cmp(&self, other: &Base64) -> Orderingfn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd<Base64> for Base64[src]
impl PartialOrd<Base64> for Base64fn partial_cmp(&self, other: &Base64) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Base64) -> Option<Ordering>#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Debug for Base64[src]
impl Debug for Base64impl Hash for Base64[src]
impl Hash for Base64fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Copy for Base64[src]
impl Copy for Base64impl Clone for Base64[src]
impl Clone for Base64fn clone(&self) -> Base64[src]
fn clone(&self) -> Base64fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Default for Base64[src]
impl Default for Base64Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone,