[−][src]Struct signatory::encoding::Hex
Hexadecimal Encoding
(a.k.a. Base16)
Methods
impl Hex
[src]
impl Hex
pub fn lower_case() -> Hex
[src]
pub fn lower_case() -> Hex
Lower case hex: 0-9 a-f
pub fn upper_case() -> Hex
[src]
pub fn upper_case() -> Hex
Upper case hex: 0-9 A-F
Trait Implementations
impl Copy for Hex
[src]
impl Copy for Hex
impl Default for Hex
[src]
impl Default for Hex
impl PartialOrd<Hex> for Hex
[src]
impl PartialOrd<Hex> for Hex
fn partial_cmp(&self, other: &Hex) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Hex) -> Option<Ordering>
fn lt(&self, other: &Hex) -> bool
[src]
fn lt(&self, other: &Hex) -> bool
fn le(&self, other: &Hex) -> bool
[src]
fn le(&self, other: &Hex) -> bool
fn gt(&self, other: &Hex) -> bool
[src]
fn gt(&self, other: &Hex) -> bool
fn ge(&self, other: &Hex) -> bool
[src]
fn ge(&self, other: &Hex) -> bool
impl Ord for Hex
[src]
impl Ord for Hex
fn cmp(&self, other: &Hex) -> Ordering
[src]
fn cmp(&self, other: &Hex) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Clone for Hex
[src]
impl Clone for Hex
fn clone(&self) -> Hex
[src]
fn clone(&self) -> Hex
fn 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 PartialEq<Hex> for Hex
[src]
impl PartialEq<Hex> for Hex
impl Eq for Hex
[src]
impl Eq for Hex
impl Debug for Hex
[src]
impl Debug for Hex
impl Hash for Hex
[src]
impl Hash for Hex
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
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 Encoding for Hex
[src]
impl Encoding for Hex
fn 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]) -> usize
fn 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>(&self, bytes: B) -> Vec<u8> where
B: AsRef<[u8]>,
[src]
fn encode<B>(&self, bytes: B) -> Vec<u8> where
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]
fn encode_to_string<B>(&self, bytes: B) -> Result<String, Error> where
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]
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>(&self, encoded_bytes: B) -> Result<Vec<u8>, Error> where
B: AsRef<[u8]>,
[src]
fn decode<B>(&self, encoded_bytes: B) -> Result<Vec<u8>, Error> where
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]
fn decode_from_str<S>(&self, encoded: S) -> Result<Vec<u8>, Error> where
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]
fn decode_from_reader<R>(&self, reader: &mut R) -> Result<Vec<u8>, Error> where
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]
fn decode_from_file<P>(&self, path: P) -> Result<Vec<u8>, Error> where
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
Auto 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 T
impl<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 T
impl<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) -> TypeId
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self