pub struct DecodeError(/* private fields */);
Implementations§
Source§impl DecodeError
impl DecodeError
pub const INPUT_TOO_SHORT: DecodeError
pub const INPUT_TOO_LONG: DecodeError
pub const INPUT_OUT_OF_RANGE: DecodeError
pub const INVALID_VALUE: DecodeError
pub const UNSUPPORTED_OPERATION: DecodeError
pub const ARRAY_DECODE_ERROR: DecodeError
pub const UTF8_DECODE_ERROR: DecodeError
pub const CAPACITY_EXCEEDED_ERROR: DecodeError
pub const MULTI_TOO_FEW_ARGS: DecodeError
pub const MULTI_TOO_MANY_ARGS: DecodeError
pub fn message_bytes(&self) -> &'static [u8] ⓘ
pub fn message_str(&self) -> &'static str
Trait Implementations§
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl From<&'static str> for DecodeError
impl From<&'static str> for DecodeError
Source§fn from(message_bytes: &'static str) -> DecodeError
fn from(message_bytes: &'static str) -> DecodeError
Converts to this type from the input type.
Source§impl<T> From<CapacityError<T>> for DecodeError
Allows us to use ?
from the try_push
to return our DecodeError
.
impl<T> From<CapacityError<T>> for DecodeError
Allows us to use ?
from the try_push
to return our DecodeError
.
Source§fn from(_: CapacityError<T>) -> DecodeError
fn from(_: CapacityError<T>) -> DecodeError
Converts to this type from the input type.
Source§impl From<DecodeError> for StaticSCError
impl From<DecodeError> for StaticSCError
Source§fn from(err: DecodeError) -> StaticSCError
fn from(err: DecodeError) -> StaticSCError
Converts to this type from the input type.
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
impl Eq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more