pub struct VertexDoesNotExistSnafu<__T0> {
pub index: __T0,
}
Expand description
SNAFU context selector for the GraphError::VertexDoesNotExist
variant
Fields§
§index: __T0
Implementations§
Source§impl<__T0> VertexDoesNotExistSnafu<__T0>
impl<__T0> VertexDoesNotExistSnafu<__T0>
Sourcepub fn build(self) -> GraphErrorwhere
__T0: Into<VertexIndex>,
pub fn build(self) -> GraphErrorwhere
__T0: Into<VertexIndex>,
Consume the selector and return the associated error
Sourcepub fn fail<__T>(self) -> Result<__T, GraphError>where
__T0: Into<VertexIndex>,
pub fn fail<__T>(self) -> Result<__T, GraphError>where
__T0: Into<VertexIndex>,
Consume the selector and return a Result
with the associated error
Trait Implementations§
Source§impl<__T0: Clone> Clone for VertexDoesNotExistSnafu<__T0>
impl<__T0: Clone> Clone for VertexDoesNotExistSnafu<__T0>
Source§fn clone(&self) -> VertexDoesNotExistSnafu<__T0>
fn clone(&self) -> VertexDoesNotExistSnafu<__T0>
Returns a copy 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 VertexDoesNotExistSnafu<__T0>
impl<__T0: Debug> Debug for VertexDoesNotExistSnafu<__T0>
Source§impl<__T0> IntoError<GraphError> for VertexDoesNotExistSnafu<__T0>
impl<__T0> IntoError<GraphError> for VertexDoesNotExistSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> GraphError
fn into_error(self, error: Self::Source) -> GraphError
Combine the information to produce the error
impl<__T0: Copy> Copy for VertexDoesNotExistSnafu<__T0>
Auto Trait Implementations§
impl<__T0> Freeze for VertexDoesNotExistSnafu<__T0>where
__T0: Freeze,
impl<__T0> RefUnwindSafe for VertexDoesNotExistSnafu<__T0>where
__T0: RefUnwindSafe,
impl<__T0> Send for VertexDoesNotExistSnafu<__T0>where
__T0: Send,
impl<__T0> Sync for VertexDoesNotExistSnafu<__T0>where
__T0: Sync,
impl<__T0> Unpin for VertexDoesNotExistSnafu<__T0>where
__T0: Unpin,
impl<__T0> UnwindSafe for VertexDoesNotExistSnafu<__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