Enum EncoderResult
#[must_use]
pub enum EncoderResult
Result of a (potentially partial) encode operation without replacement.
Variants
-
InputEmpty The input was exhausted.
If this result was returned from a call where
lastwastrue, the decoding process has completed. Otherwise, the caller should call a decode method again with more input.-
OutputFull The encoder cannot produce another unit of output, because the output buffer does not have enough space left.
The caller must provide more output space upon the next call and re-push the remaining input to the decoder.
-
Unmappable(char) The encoder encountered an unmappable character.
The caller must either treat this as a fatal error or must append a placeholder to the output and then re-push the remaining input to the encoder.
Trait Implementations
impl Debug for EncoderResult
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for EncoderResult
impl PartialEq for EncoderResult
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for EncoderResult
Auto Trait Implementations
impl Freeze for EncoderResult
impl RefUnwindSafe for EncoderResult
impl Send for EncoderResult
impl Sync for EncoderResult
impl Unpin for EncoderResult
impl UnsafeUnpin for EncoderResult
impl UnwindSafe for EncoderResult
Blanket Implementations
impl<T> Any for EncoderResult
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for EncoderResult
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for EncoderResult
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for EncoderResult
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for EncoderResult
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for EncoderResult
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for EncoderResult
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>