pub struct Phantom<S: Constr>(pub PhantomData<fn(S) -> S>);Expand description
Tuple Fields§
§0: PhantomData<fn(S) -> S>Trait Implementations§
impl<S: Constr> Copy for Phantom<S>
impl<S: Constr> Eq for Phantom<S>
Source§impl<S: Constr> Ord for Phantom<S>
impl<S: Constr> Ord for Phantom<S>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<S: Constr> PartialOrd for Phantom<S>
impl<S: Constr> PartialOrd for Phantom<S>
Auto Trait Implementations§
impl<S> Freeze for Phantom<S>
impl<S> RefUnwindSafe for Phantom<S>
impl<S> Send for Phantom<S>
impl<S> Sync for Phantom<S>
impl<S> Unpin for Phantom<S>
impl<S> UnsafeUnpin for Phantom<S>
impl<S> UnwindSafe for Phantom<S>
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