Enum idna::uts46::ProcessingSuccess
source · pub enum ProcessingSuccess {
Passthrough,
WroteToSink,
}
Expand description
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§
source§impl Clone for ProcessingSuccess
impl Clone for ProcessingSuccess
source§fn clone(&self) -> ProcessingSuccess
fn clone(&self) -> ProcessingSuccess
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProcessingSuccess
impl Debug for ProcessingSuccess
source§impl PartialEq for ProcessingSuccess
impl PartialEq for ProcessingSuccess
source§fn eq(&self, other: &ProcessingSuccess) -> bool
fn eq(&self, other: &ProcessingSuccess) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProcessingSuccess
impl Eq for ProcessingSuccess
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 UnwindSafe for ProcessingSuccess
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)