Enum EncoderResult
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.
Implementations
impl Debug for EncoderResult
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for EncoderResult
impl Freeze for EncoderResult
impl PartialEq for EncoderResult
fn eq(self: &Self, other: &EncoderResult) -> bool
impl RefUnwindSafe for EncoderResult
impl Send for EncoderResult
impl StructuralPartialEq for EncoderResult
impl Sync for EncoderResult
impl Unpin for EncoderResult
impl UnsafeUnpin for EncoderResult
impl UnwindSafe for EncoderResult
impl<T> Any for EncoderResult
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for EncoderResult
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for EncoderResult
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for EncoderResult
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for EncoderResult
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for EncoderResult
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for EncoderResult
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>