[−][src]Struct subtle_encoding::hex::Hex
Hexadecimal Encoding
(a.k.a. Base16)
Methods
impl Hex
[src]
pub fn lower_case() -> Hex
[src]
Lower case hex: 0-9 a-f
pub fn upper_case() -> Hex
[src]
Upper case hex: 0-9 A-F
Trait Implementations
impl Clone for Hex
[src]
impl Copy for Hex
[src]
impl Debug for Hex
[src]
impl Default for Hex
[src]
impl Encoding for Hex
[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: AsRef<[u8]>>(&self, bytes: B) -> Vec<u8>
[src]
fn encode_to_string<B: AsRef<[u8]>>(&self, bytes: B) -> Result<String, Error>
[src]
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,
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>,
fn decode<B: AsRef<[u8]>>(&self, encoded_bytes: B) -> Result<Vec<u8>, Error>
[src]
fn decode_from_str<S: AsRef<str>>(&self, encoded: S) -> Result<Vec<u8>, Error>
[src]
fn decode_from_reader<R: Read>(&self, reader: &mut R) -> Result<Vec<u8>, Error>
[src]
fn decode_from_file<P: AsRef<Path>>(&self, path: P) -> Result<Vec<u8>, Error>
[src]
impl Eq for Hex
[src]
impl Hash for Hex
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Hex
[src]
fn cmp(&self, other: &Hex) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Hex> for Hex
[src]
impl PartialOrd<Hex> for Hex
[src]
fn partial_cmp(&self, other: &Hex) -> Option<Ordering>
[src]
fn lt(&self, other: &Hex) -> bool
[src]
fn le(&self, other: &Hex) -> bool
[src]
fn gt(&self, other: &Hex) -> bool
[src]
fn ge(&self, other: &Hex) -> bool
[src]
impl StructuralEq for Hex
[src]
impl StructuralPartialEq for Hex
[src]
Auto Trait Implementations
impl RefUnwindSafe for Hex
impl Send for Hex
impl Sync for Hex
impl Unpin for Hex
impl UnwindSafe for Hex
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, 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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,