[][src]Enum debt64::Kind

pub enum Kind {
    Standard,
    IMAP,
    MIME,
    URL,
    FreenetURL,
}

Kinds

Not all variants are supported. Please follow the wiki article for details.

Variants

Standard

Standard

Character #62Character #63PaddingFixed line lengthMax. line lengthLine separatorsCharacters outside alphabet
+/=NoNoneNoneForbidden
IMAP

IMAP mailbox names

Character #62Character #63PaddingFixed line lengthMax. line lengthLine separatorsCharacters outside alphabet
+,NoneNoNoneNoneForbidden
MIME

For MIME

Character #62Character #63PaddingFixed line lengthMax. line lengthLine separatorsCharacters outside alphabet
+/=No76\r\nAccepted (discarded)

Notes

  • Encoding produces above line separators.
  • Decoding accepts above line separators and also just a single line feed \n.
  • Decoding does not allow consecutive line separators. For instance \r\n\r\n are not allowed.
URL

URLs and filenames

Character #62Character #63PaddingFixed line lengthMax. line lengthLine separatorsCharacters outside alphabet
-_= (optional)NoOptionalNoneForbidden

Notes

  • This implementation has no limit on max line length.
  • Encoding doesn't produce pad characters.
FreenetURL

URLs and filenames in Freenet

Character #62Character #63PaddingFixed line lengthMax. line lengthLine separatorsCharacters outside alphabet
~-=NoOptionalNoneForbidden

Notes

  • This implementation has no limit on max line length.

Freenet: https://en.wikipedia.org/wiki/Freenet

Methods

impl Kind[src]

pub fn estimate_encoding_capacity<B>(&self, bytes: B) -> usize where
    B: AsRef<[u8]>, 
[src]

pub fn estimate_decoding_capacity<B>(&self, bytes: B) -> usize where
    B: AsRef<[u8]>, 
[src]

Trait Implementations

impl Debug for Kind[src]

Auto Trait Implementations

impl Unpin for Kind

impl Sync for Kind

impl Send for Kind

impl UnwindSafe for Kind

impl RefUnwindSafe for Kind

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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