[−][src]Enum debt64::Kind
Kinds
Not all variants are supported. Please follow the wiki article for details.
Variants
Standard
Standard
Character #62 | Character #63 | Padding | Fixed line length | Max. line length | Line separators | Characters outside alphabet |
---|---|---|---|---|---|---|
+ | / | = | No | None | None | Forbidden |
IMAP
IMAP mailbox names
Character #62 | Character #63 | Padding | Fixed line length | Max. line length | Line separators | Characters outside alphabet |
---|---|---|---|---|---|---|
+ | , | None | No | None | None | Forbidden |
MIME
For MIME
Character #62 | Character #63 | Padding | Fixed line length | Max. line length | Line separators | Characters outside alphabet |
---|---|---|---|---|---|---|
+ | / | = | No | 76 | \r\n | Accepted (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 #62 | Character #63 | Padding | Fixed line length | Max. line length | Line separators | Characters outside alphabet |
---|---|---|---|---|---|---|
- | _ | = (optional) | No | Optional | None | Forbidden |
Notes
- This implementation has no limit on max line length.
- Encoding doesn't produce pad characters.
FreenetURL
URLs and filenames in Freenet
Character #62 | Character #63 | Padding | Fixed line length | Max. line length | Line separators | Characters outside alphabet |
---|---|---|---|---|---|---|
~ | - | = | No | Optional | None | Forbidden |
Notes
- This implementation has no limit on max line length.
Methods
impl Kind
[src]
pub fn estimate_encoding_capacity<B>(&self, bytes: B) -> usize where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
pub fn estimate_decoding_capacity<B>(&self, bytes: B) -> usize where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
Trait Implementations
Auto Trait Implementations
impl Unpin for Kind
impl Send for Kind
impl Sync for Kind
impl UnwindSafe for Kind
impl RefUnwindSafe for Kind
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[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,