pub enum Greater<const A: i128, const B: i128> {}Expand description
Matches when LHS is greater than RHS.
#![feature(generic_const_exprs)]
use checks::{ Passed, i128::* };
struct GreaterTest<const A: i128, const B: i128>
where
Greater<A, B>: Passed;
let works = GreaterTest::<3, 2>; // Success!
let works = GreaterTest::<11, 5>; // Success!ⓘ
let doesnt_work = GreaterTest::<5, 10>; // Compile error!
let doesnt_work = GreaterTest::<6, 6>; // Compile error!Implementations§
Trait Implementations§
impl<const A: i128, const B: i128> Conclusion<{ $name::<$($param),*>::simplify() }> for Greater<A, B>
Auto Trait Implementations§
impl<const A: i128, const B: i128> Freeze for Greater<A, B>
impl<const A: i128, const B: i128> RefUnwindSafe for Greater<A, B>
impl<const A: i128, const B: i128> Send for Greater<A, B>
impl<const A: i128, const B: i128> Sync for Greater<A, B>
impl<const A: i128, const B: i128> Unpin for Greater<A, B>
impl<const A: i128, const B: i128> UnwindSafe for Greater<A, B>
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