pub struct Data<D>(pub D);Expand description
Wrapper to indicate that a value is a data associated with a point.
See Sampling::fun for an example.
Tuple Fields§
§0: DAuto Trait Implementations§
impl<D> Freeze for Data<D>where
D: Freeze,
impl<D> RefUnwindSafe for Data<D>where
D: RefUnwindSafe,
impl<D> Send for Data<D>where
D: Send,
impl<D> Sync for Data<D>where
D: Sync,
impl<D> Unpin for Data<D>where
D: Unpin,
impl<D> UnwindSafe for Data<D>where
D: 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