[−][src]Struct signatory::encoding::Base64
Base64 Encoding
(traditional non-URL-safe RFC 4648 version)
Character set: [A-Z]
, [a-z]
, [0-9]
, +
, /
Trait Implementations
impl Ord for Base64
[src]
fn cmp(&self, other: &Base64) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Clone for Base64
[src]
fn clone(&self) -> Base64
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Base64
[src]
impl Copy for Base64
[src]
impl Encoding for Base64
[src]
fn encode_to_slice(&self, src: &[u8], dst: &mut [u8]) -> Result<usize, Error>
[src]
fn encoded_len(&self, bytes: &[u8]) -> usize
[src]
fn decode_to_slice(&self, src: &[u8], dst: &mut [u8]) -> Result<usize, Error>
[src]
fn decoded_len(&self, bytes: &[u8]) -> Result<usize, Error>
[src]
fn encode<B>(&self, bytes: B) -> Vec<u8> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
Encode the given buffer, returning a Vec<u8>
fn encode_to_string<B>(&self, bytes: B) -> Result<String, Error> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
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]
&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]
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>(&self, encoded_bytes: B) -> Result<Vec<u8>, Error> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
Decode the given buffer, returning a Vec<u8>
fn decode_from_str<S>(&self, encoded: S) -> Result<Vec<u8>, Error> where
S: AsRef<str>,
[src]
S: AsRef<str>,
Decode the given string-alike type with this Encoding
, returning the decoded value or a Error
. Read more
fn decode_from_reader<R>(&self, reader: &mut R) -> Result<Vec<u8>, Error> where
R: Read,
[src]
R: Read,
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>(&self, path: P) -> Result<Vec<u8>, Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
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 PartialOrd<Base64> for Base64
[src]
fn partial_cmp(&self, other: &Base64) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This 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) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Default for Base64
[src]
impl PartialEq<Base64> for Base64
[src]
fn eq(&self, other: &Base64) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Base64
[src]
impl Hash for Base64
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self