Enum ProcessingSuccess

pub enum ProcessingSuccess

The success outcome of Uts46::process

Variants

Passthrough

There were no errors. The caller must consider the input to be the output.

This asserts that the input can be safely passed to core::str::from_utf8_unchecked.

(Distinct from WroteToSink in order to allow Cow behavior to be implemented on top of Uts46::process.)

WroteToSink

There were no errors. The caller must consider what was written to the sink to be the output.

(Distinct from Passthrough in order to allow Cow behavior to be implemented on top of Uts46::process.)

Trait Implementations

impl Clone for ProcessingSuccess

fn clone(&self) -> Self

impl Copy for ProcessingSuccess

impl Debug for ProcessingSuccess

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

impl Eq for ProcessingSuccess

impl PartialEq for ProcessingSuccess

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for ProcessingSuccess

Auto Trait Implementations

impl Freeze for ProcessingSuccess

impl RefUnwindSafe for ProcessingSuccess

impl Send for ProcessingSuccess

impl Sync for ProcessingSuccess

impl Unpin for ProcessingSuccess

impl UnsafeUnpin for ProcessingSuccess

impl UnwindSafe for ProcessingSuccess

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for ProcessingSuccess

fn from(t: T) -> T

Returns the argument unchanged.

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

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

impl<T, U> Into<U> for ProcessingSuccess 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 ProcessingSuccess where U: Into<T>,

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

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

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