pub struct WinnowCtxSnafu<__T0> {
pub render: __T0,
}Expand description
SNAFU context selector for the ParseError::WinnowCtx variant
Fields§
§render: __T0Implementations§
Source§impl<__T0> WinnowCtxSnafu<__T0>
impl<__T0> WinnowCtxSnafu<__T0>
Sourcepub fn build(self) -> ParseErrorwhere
__T0: Into<ContextError>,
pub fn build(self) -> ParseErrorwhere
__T0: Into<ContextError>,
Consume the selector and return the associated error
Sourcepub fn fail<__T>(self) -> Result<__T, ParseError>where
__T0: Into<ContextError>,
pub fn fail<__T>(self) -> Result<__T, ParseError>where
__T0: Into<ContextError>,
Consume the selector and return a Result with the associated error
Trait Implementations§
Source§impl<__T0: Clone> Clone for WinnowCtxSnafu<__T0>
impl<__T0: Clone> Clone for WinnowCtxSnafu<__T0>
Source§fn clone(&self) -> WinnowCtxSnafu<__T0>
fn clone(&self) -> WinnowCtxSnafu<__T0>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<__T0: Debug> Debug for WinnowCtxSnafu<__T0>
impl<__T0: Debug> Debug for WinnowCtxSnafu<__T0>
Source§impl<__T0> IntoError<ParseError> for WinnowCtxSnafu<__T0>
impl<__T0> IntoError<ParseError> for WinnowCtxSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ParseError
fn into_error(self, error: Self::Source) -> ParseError
Combine the information to produce the error
impl<__T0: Copy> Copy for WinnowCtxSnafu<__T0>
Auto Trait Implementations§
impl<__T0> Freeze for WinnowCtxSnafu<__T0>where
__T0: Freeze,
impl<__T0> RefUnwindSafe for WinnowCtxSnafu<__T0>where
__T0: RefUnwindSafe,
impl<__T0> Send for WinnowCtxSnafu<__T0>where
__T0: Send,
impl<__T0> Sync for WinnowCtxSnafu<__T0>where
__T0: Sync,
impl<__T0> Unpin for WinnowCtxSnafu<__T0>where
__T0: Unpin,
impl<__T0> UnwindSafe for WinnowCtxSnafu<__T0>where
__T0: UnwindSafe,
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