Struct lambda_types::primitives::Constant
source · 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
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
)