Struct gluon_base::error::Salvage
source · pub struct Salvage<T, E> {
pub value: Option<T>,
pub error: E,
}
Fields§
§value: Option<T>
§error: E
Implementations§
Trait Implementations§
source§impl<T: PartialEq, E: PartialEq> PartialEq for Salvage<T, E>
impl<T: PartialEq, E: PartialEq> PartialEq for Salvage<T, E>
impl<T: Eq, E: Eq> Eq for Salvage<T, E>
impl<T, E> StructuralEq for Salvage<T, E>
impl<T, E> StructuralPartialEq for Salvage<T, E>
Auto Trait Implementations§
impl<T, E> RefUnwindSafe for Salvage<T, E>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for Salvage<T, E>
impl<T, E> Sync for Salvage<T, E>
impl<T, E> Unpin for Salvage<T, E>
impl<T, E> UnwindSafe for Salvage<T, E>where
E: UnwindSafe,
T: 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