pub struct NoSource;Expand description
The stand-in “source” a leaf selector (one with no source field) builds
from. Option::context uses it as the source when there is no error value to
attach. You normally reach a leaf error through .build() / .fail() /
Option::context, so you rarely name this directly.
Trait Implementations§
impl Copy for NoSource
impl Eq for NoSource
impl StructuralPartialEq for NoSource
Auto Trait Implementations§
impl Freeze for NoSource
impl RefUnwindSafe for NoSource
impl Send for NoSource
impl Sync for NoSource
impl Unpin for NoSource
impl UnsafeUnpin for NoSource
impl UnwindSafe for NoSource
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