Enum EncodeError
pub enum EncodeError {
TooLarge,
StalePlan,
TimeNotAdvancing,
WrongValueCount,
NonFinite(usize),
TooLong(usize),
InvalidValue(usize),
}Expand description
Errors returned by encoding operations.
Variants§
TooLarge
The output buffer is smaller than Plan::len.
StalePlan
The plan was created by an earlier generation of the encoder.
TimeNotAdvancing
The tick count did not strictly increase.
WrongValueCount
The wrong number of values was supplied.
NonFinite(usize)
A numeric sample was not finite.
TooLong(usize)
A string or list exceeded max_len.
InvalidValue(usize)
A value had the wrong kind or an out-of-range enum index.
Trait Implementations§
§impl Clone for EncodeError
impl Clone for EncodeError
§fn clone(&self) -> EncodeError
fn clone(&self) -> EncodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for EncodeError
impl Debug for EncodeError
impl Eq for EncodeError
§impl PartialEq for EncodeError
impl PartialEq for EncodeError
impl StructuralPartialEq for EncodeError
Auto Trait Implementations§
impl Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnsafeUnpin for EncodeError
impl UnwindSafe for EncodeError
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.