pub struct Underflow;
Expand description
SNAFU context selector for the DecodeError::Underflow
variant
Implementations§
Source§impl Underflow
impl Underflow
Sourcepub fn build(self) -> DecodeError
pub fn build(self) -> DecodeError
Consume the selector and return the associated error
Sourcepub fn fail<__T>(self) -> Result<__T, DecodeError>
pub fn fail<__T>(self) -> Result<__T, DecodeError>
Consume the selector and return a Result
with the associated error
Trait Implementations§
Source§impl IntoError<DecodeError> for Underflow
impl IntoError<DecodeError> for Underflow
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
impl Copy for Underflow
Auto Trait Implementations§
impl Freeze for Underflow
impl RefUnwindSafe for Underflow
impl Send for Underflow
impl Sync for Underflow
impl Unpin for Underflow
impl UnwindSafe for Underflow
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