[−][src]Struct signatory::encoding::Identity
Encoding
which does not transform data and returns the original input.
Trait Implementations
impl Clone for Identity
[src]
impl Copy for Identity
[src]
impl Debug for Identity
[src]
impl Default for Identity
[src]
impl Encoding for Identity
[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]>,
fn encode_to_string<B>(&self, bytes: B) -> Result<String, Error> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
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>(&self, encoded_bytes: B) -> Result<Vec<u8>, Error> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
fn decode_from_str<S>(&self, encoded: S) -> Result<Vec<u8>, Error> where
S: AsRef<str>,
[src]
S: AsRef<str>,
fn decode_from_reader<R>(&self, reader: &mut R) -> Result<Vec<u8>, Error> where
R: Read,
[src]
R: Read,
fn decode_from_file<P>(&self, path: P) -> Result<Vec<u8>, Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
impl Eq for Identity
[src]
impl Hash for Identity
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Identity
[src]
fn cmp(&self, other: &Identity) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Identity> for Identity
[src]
impl PartialOrd<Identity> for Identity
[src]
fn partial_cmp(&self, other: &Identity) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Identity
[src]
impl StructuralPartialEq for Identity
[src]
Auto Trait Implementations
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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> Same<T> for T
type Output = T
Should always be Self
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>,