pub struct BadSign;
Expand description
SNAFU context selector for the DecodeError::BadSign
variant
Implementations§
Source§impl BadSign
impl BadSign
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 BadSign
impl IntoError<DecodeError> for BadSign
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 BadSign
Auto Trait Implementations§
impl Freeze for BadSign
impl RefUnwindSafe for BadSign
impl Send for BadSign
impl Sync for BadSign
impl Unpin for BadSign
impl UnwindSafe for BadSign
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