pub struct ValuePair<T: AddAssign + Default + Clone> {
pub first: T,
pub second: T,
}
Fields§
§first: T
§second: T
Implementations§
Trait Implementations§
Source§impl<T: AddAssign + Default + Clone> AddAssign for ValuePair<T>
impl<T: AddAssign + Default + Clone> AddAssign for ValuePair<T>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreAuto Trait Implementations§
impl<T> Freeze for ValuePair<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValuePair<T>where
T: RefUnwindSafe,
impl<T> Send for ValuePair<T>where
T: Send,
impl<T> Sync for ValuePair<T>where
T: Sync,
impl<T> Unpin for ValuePair<T>where
T: Unpin,
impl<T> UnwindSafe for ValuePair<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)