pub struct I64Sort;Expand description
Signed 64-bit integers supporting these primitives:
- Arithmetic:
+,-,*,/,% - Bitwise:
&,|,^,<<,>>,not-i64 - Fallible comparisons:
<,>,<=,>= - Boolean comparisons:
bool-=,bool-<,bool->,bool-<=,bool->= - Other:
min,max,to-f64,to-string,log2
Note: fallible comparisons are used at the top-level of a query.
For example, this rule will only match if a is less than b.
(rule (... (< a b)) (...))On the other hand, boolean comparisons will always match, and so make sense to use inside expressions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for I64Sort
impl RefUnwindSafe for I64Sort
impl Send for I64Sort
impl Sync for I64Sort
impl Unpin for I64Sort
impl UnwindSafe for I64Sort
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more