pub struct WithSize<T> {
pub size: usize,
pub value: T,
}
Fields§
§size: usize
§value: T
Implementations§
Trait Implementations§
source§impl<T: PartialEq> PartialEq for WithSize<T>
impl<T: PartialEq> PartialEq for WithSize<T>
impl<T: Copy> Copy for WithSize<T>
impl<T> StructuralPartialEq for WithSize<T>
Auto Trait Implementations§
impl<T> Freeze for WithSize<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithSize<T>where
T: RefUnwindSafe,
impl<T> Send for WithSize<T>where
T: Send,
impl<T> Sync for WithSize<T>where
T: Sync,
impl<T> Unpin for WithSize<T>where
T: Unpin,
impl<T> UnwindSafe for WithSize<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