[][src]Struct itsdangerous::base64::Base64SizedEncoder

pub struct Base64SizedEncoder<N>(_);

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]

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>>>

Auto Trait Implementations

impl<N> Send for Base64SizedEncoder<N> where
    N: Send

impl<N> Sync for Base64SizedEncoder<N> where
    N: Sync

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self