pub struct Constant<I> { /* private fields */ }
Expand description
Returns its type parameter, ignoring input.
λv.I
Trait Implementations§
Source§impl<I: Ord> Ord for Constant<I>
impl<I: Ord> Ord for Constant<I>
1.21.0 · 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<I: PartialOrd> PartialOrd for Constant<I>
impl<I: PartialOrd> PartialOrd for Constant<I>
impl<I: Copy> Copy for Constant<I>
impl<I: Eq> Eq for Constant<I>
impl<I> StructuralPartialEq for Constant<I>
Auto Trait Implementations§
impl<I> Freeze for Constant<I>
impl<I> RefUnwindSafe for Constant<I>where
I: RefUnwindSafe,
impl<I> Send for Constant<I>where
I: Send,
impl<I> Sync for Constant<I>where
I: Sync,
impl<I> Unpin for Constant<I>where
I: Unpin,
impl<I> UnwindSafe for Constant<I>where
I: 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