pub struct ValWithError<T> {
pub val: T,
pub err: T,
}
Fields§
§val: T
§err: T
Trait Implementations§
Source§impl<T: Clone> Clone for ValWithError<T>
impl<T: Clone> Clone for ValWithError<T>
Source§fn clone(&self) -> ValWithError<T>
fn clone(&self) -> ValWithError<T>
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<T: Debug> Debug for ValWithError<T>
impl<T: Debug> Debug for ValWithError<T>
Source§impl From<gsl_sf_result_struct> for ValWithError<f64>
impl From<gsl_sf_result_struct> for ValWithError<f64>
Source§fn from(val: gsl_sf_result) -> Self
fn from(val: gsl_sf_result) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for ValWithError<T>
impl<T: PartialEq> PartialEq for ValWithError<T>
impl<T: Copy> Copy for ValWithError<T>
impl<T> StructuralPartialEq for ValWithError<T>
Auto Trait Implementations§
impl<T> Freeze for ValWithError<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValWithError<T>where
T: RefUnwindSafe,
impl<T> Send for ValWithError<T>where
T: Send,
impl<T> Sync for ValWithError<T>where
T: Sync,
impl<T> Unpin for ValWithError<T>where
T: Unpin,
impl<T> UnwindSafe for ValWithError<T>where
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