Struct pem_rfc7468::Decoder[][src]

pub struct Decoder {
    pub wrap_width: usize,
}
Expand description

PEM decoder.

This type provides a degree of configurability for how PEM is decoded.

Fields

wrap_width: usize

Number of characters at which to line-wrap Base64-encoded data (default 64).

Must be a multiple of 4, or otherwise decoding operations will return Error::Base64.

Implementations

Create a new Decoder with the default options.

Decode a PEM document according to RFC 7468’s “Strict” grammar.

On success, writes the decoded document into the provided buffer, returning the decoded label and the portion of the provided buffer containing the decoded message.

This is supported on crate feature alloc only.

Decode a PEM document according to RFC 7468’s “Strict” grammar, returning the result as a Vec upon success.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.