Struct base64_simd::Base64

source ·
pub struct Base64 { /* private fields */ }
Expand description

Base64 variant

Implementations§

Returns the character set.

Calculates the encoded length.

Panics

This function will panic if n > isize::MAX.

Estimates the decoded length.

The result is an upper bound which can be used for allocation.

Calculates the decoded length.

The result is a precise value which can be used for allocation.

Errors

This function returns Err if the content of data is partially invalid.

Checks whether data is a base64 string.

Errors

This function returns Err if the content of data is invalid.

Encodes bytes to a base64 string.

Panics

This function will panic if the length of dst is not enough.

Encodes bytes to a base64 string and returns &mut str.

Panics

This function will panic if the length of dst is not enough.

Decodes a base64 string to bytes.

Errors

This function returns Err if the content of src is invalid.

Panics

This function will panic if the length of dst is not enough.

Decodes a base64 string to bytes and writes inplace.

Errors

This function returns Err if the content of data is invalid.

Encodes bytes to a base64 string and returns a specified type.

Decodes a base64 string to bytes and returns a specified type.

Errors

This function returns Err if the content of data is invalid.

Encodes bytes to a base64 string and appends to a specified type.

Decodes a base64 string to bytes and appends to a specified type.

Errors

This function returns Err if the content of src is invalid.

Available on crate feature alloc only.

Encodes bytes to a base64 string.

Available on crate feature alloc only.

Decodes a base64 string to bytes.

Errors

This function returns Err if the content of data is invalid.

Trait Implementations§

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

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

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.