Struct GeneralPurpose

pub struct GeneralPurpose { /* private fields */ }

A general-purpose base64 engine.

Implementations

impl GeneralPurpose

const fn new(alphabet: &Alphabet, config: GeneralPurposeConfig) -> Self

Create a GeneralPurpose engine from an [Alphabet].

While not very expensive to initialize, ideally these should be cached if the engine will be used repeatedly.

Trait Implementations

impl Clone for GeneralPurpose

fn clone(&self) -> GeneralPurpose

impl Debug for GeneralPurpose

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Engine for GeneralPurpose

type Config = GeneralPurposeConfig;
type DecodeEstimate = GeneralPurposeEstimate;
fn config(&self) -> &Self::Config
fn padding(&self) -> Symbol

Auto Trait Implementations

impl Freeze for GeneralPurpose

impl RefUnwindSafe for GeneralPurpose

impl Send for GeneralPurpose

impl Sync for GeneralPurpose

impl Unpin for GeneralPurpose

impl UnsafeUnpin for GeneralPurpose

impl UnwindSafe for GeneralPurpose

Blanket Implementations

impl<T> Any for GeneralPurpose where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for GeneralPurpose where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for GeneralPurpose where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for GeneralPurpose where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for GeneralPurpose

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for GeneralPurpose where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for GeneralPurpose where U: From<T>,

fn into(self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom<U> for GeneralPurpose where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for GeneralPurpose where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>