[][src]Struct z85::rfc::Z85

pub struct Z85 { /* fields omitted */ }

Main type. Input data length must be multiple of four.

Methods

impl Z85[src]

pub fn encode(input: &[u8]) -> Result<Z85, EncoderError>[src]

Creates Z85 from any byte slice with length multiple of four.

pub fn as_str(&self) -> &str[src]

Returns Z85 data as a str.

pub fn as_bytes(&self) -> &[u8][src]

Returns Z85 data as a slice.

pub fn decode(&self) -> Vec<u8>[src]

Converts data back to original byte vector.

pub fn wrap_bytes(input: Vec<u8>) -> Result<Z85, ParserError>[src]

Takes in and owns Z85 data if it's valid.

pub unsafe fn wrap_bytes_unchecked(input: Vec<u8>) -> Self[src]

Safety

This can lead to crashes. Owns any byte vector as Z85 and assumes it's valid.

Trait Implementations

impl Clone for Z85[src]

impl Debug for Z85[src]

impl Display for Z85[src]

impl Eq for Z85[src]

impl PartialEq<Z85> for Z85[src]

impl StructuralEq for Z85[src]

impl StructuralPartialEq for Z85[src]

Auto Trait Implementations

impl RefUnwindSafe for Z85

impl Send for Z85

impl Sync for Z85

impl Unpin for Z85

impl UnwindSafe for Z85

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.