[−][src]Struct itsdangerous::base64::Base64SizedEncoder
Trait Implementations
impl<N> Base64Sized for Base64SizedEncoder<N> where
N: Unsigned + ArrayLength<u8>,
N: Rem<U3>,
N: Div<U3>,
Quot<N, U3>: Mul<U4>,
Mod<N, U3>: Min<U1>,
Mod<N, U3>: Add<Minimum<Mod<N, U3>, U1>>,
Prod<Quot<N, U3>, U4>: Add<Sum<Mod<N, U3>, Minimum<Mod<N, U3>, U1>>>,
Sum<Prod<Quot<N, U3>, U4>, Sum<Mod<N, U3>, Minimum<Mod<N, U3>, U1>>>: Unsigned + ArrayLength<u8>,
[src]
N: Unsigned + ArrayLength<u8>,
N: Rem<U3>,
N: Div<U3>,
Quot<N, U3>: Mul<U4>,
Mod<N, U3>: Min<U1>,
Mod<N, U3>: Add<Minimum<Mod<N, U3>, U1>>,
Prod<Quot<N, U3>, U4>: Add<Sum<Mod<N, U3>, Minimum<Mod<N, U3>, U1>>>,
Sum<Prod<Quot<N, U3>, U4>, Sum<Mod<N, U3>, Minimum<Mod<N, U3>, U1>>>: Unsigned + ArrayLength<u8>,
Implementation of the Base64Sized
trait. This does the actual computation.
A simple example is as follows:
use itsdangerous::base64::{Base64Sized, Base64SizedEncoder}; use hmac::digest::generic_array::*; let arr = arr![u8; 1, 2, 3]; let result = Base64SizedEncoder::encode(arr);
type InputSize = N
type OutputSize = Sum<Prod<Quot<N, U3>, U4>, Sum<Mod<N, U3>, Minimum<Mod<N, U3>, U1>>>
fn encode(
input: GenericArray<u8, Self::InputSize>
) -> GenericArray<u8, Self::OutputSize>
[src]
input: GenericArray<u8, Self::InputSize>
) -> GenericArray<u8, Self::OutputSize>
fn output_size() -> usize
[src]
Auto Trait Implementations
impl<N> Send for Base64SizedEncoder<N> where
N: Send,
N: Send,
impl<N> Sync for Base64SizedEncoder<N> where
N: Sync,
N: Sync,
Blanket Implementations
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> 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>,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self