Skip to main content

Base32NoPad

Struct Base32NoPad 

Source
pub struct Base32NoPad;
Expand description

Base32 without padding.

Uppercase and lowercase letters are accepted when decoding.

Trait Implementations§

Source§

impl BytesEncoding for Base32NoPad

Source§

const NAME: &'static str = "base32-nopad"

The name of the encoding. Read more
Source§

fn encode(bytes: &[u8], out: &mut String)

Encodes bytes and appends them to the string.
Source§

fn decode(s: &str) -> Result<Vec<u8>, Error>

Decodes a string.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<F> BytesFallbackFormat for F
where F: BytesFallbackFormatImpl,

Source§

impl<'de, 'c, E> DeserializeAs<'de, Cow<'c, [u8]>> for E
where E: BytesEncoding,

Source§

fn deserialize_into_as<'a>( out: &'a mut Option<Cow<'c, [u8]>>, state: &mut State, ) -> SinkHandle<'a, 'de>

Creates a sink that deserializes the value into the given slot. Read more
Source§

fn initial_value_as() -> Option<T>

Provides the value of a missing struct field. Read more
Source§

fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
where T: Send, Self: Sized,

Creates a sink that updates an existing value. Read more
Source§

impl<'de, E> DeserializeAs<'de, Vec<u8>> for E
where E: BytesEncoding,

Source§

fn deserialize_into_as<'a>( out: &'a mut Option<Vec<u8>>, state: &mut State, ) -> SinkHandle<'a, 'de>

Creates a sink that deserializes the value into the given slot. Read more
Source§

fn initial_value_as() -> Option<T>

Provides the value of a missing struct field. Read more
Source§

fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
where T: Send, Self: Sized,

Creates a sink that updates an existing value. Read more
Source§

impl<'de, const N: usize, E> DeserializeAs<'de, [u8; N]> for E
where E: BytesEncoding,

Source§

fn deserialize_into_as<'a>( out: &'a mut Option<[u8; N]>, state: &mut State, ) -> SinkHandle<'a, 'de>

Creates a sink that deserializes the value into the given slot. Read more
Source§

fn initial_value_as() -> Option<T>

Provides the value of a missing struct field. Read more
Source§

fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
where T: Send, Self: Sized,

Creates a sink that updates an existing value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'c, E> SerializeAs<Cow<'c, [u8]>> for E
where E: BytesEncoding,

Source§

fn serialize_as<'a>( value: &'a Cow<'c, [u8]>, _state: &mut State, ) -> Result<Chunk<'a>, Error>

Serializes the value. Read more
Source§

fn __private_begin_as<'a>( value: &'a Cow<'c, [u8]>, state: &mut State, ) -> Result<Begin<'a>, Error>

Source§

fn finish_as(value: &T, state: &mut State) -> Result<(), Error>

Invoked after the serialization finished. Read more
Source§

fn is_optional_as(value: &T) -> bool

Checks if the value represents an optional value. Read more
Source§

fn container_shape_as(value: &T) -> ContainerShape

Returns the shape of the value if it’s a map or sequence. Read more
Source§

fn describe_as(value: &T, d: &mut dyn Describe)

Describes the Rust shape of the value. Read more
Source§

impl<E> SerializeAs<Vec<u8>> for E
where E: BytesEncoding,

Source§

fn serialize_as<'a>( value: &'a Vec<u8>, _state: &mut State, ) -> Result<Chunk<'a>, Error>

Serializes the value. Read more
Source§

fn __private_begin_as<'a>( value: &'a Vec<u8>, state: &mut State, ) -> Result<Begin<'a>, Error>

Source§

fn finish_as(value: &T, state: &mut State) -> Result<(), Error>

Invoked after the serialization finished. Read more
Source§

fn is_optional_as(value: &T) -> bool

Checks if the value represents an optional value. Read more
Source§

fn container_shape_as(value: &T) -> ContainerShape

Returns the shape of the value if it’s a map or sequence. Read more
Source§

fn describe_as(value: &T, d: &mut dyn Describe)

Describes the Rust shape of the value. Read more
Source§

impl<const N: usize, E> SerializeAs<[u8; N]> for E
where E: BytesEncoding,

Source§

fn serialize_as<'a>( value: &'a [u8; N], _state: &mut State, ) -> Result<Chunk<'a>, Error>

Serializes the value. Read more
Source§

fn __private_begin_as<'a>( value: &'a [u8; N], state: &mut State, ) -> Result<Begin<'a>, Error>

Source§

fn finish_as(value: &T, state: &mut State) -> Result<(), Error>

Invoked after the serialization finished. Read more
Source§

fn is_optional_as(value: &T) -> bool

Checks if the value represents an optional value. Read more
Source§

fn container_shape_as(value: &T) -> ContainerShape

Returns the shape of the value if it’s a map or sequence. Read more
Source§

fn describe_as(value: &T, d: &mut dyn Describe)

Describes the Rust shape of the value. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.