pub struct OrdTerm<'a> { /* private fields */ }Expand description
A TermId paired with its TermDag so it can be ordered by
TermDag::ast_cmp, for use in ordered collections like
BTreeMap/BTreeSet (see TermDag::ord_term). Only compare wrappers
from the same TermDag.
Implementations§
Trait Implementations§
impl<'a> Copy for OrdTerm<'a>
impl Eq for OrdTerm<'_>
Source§impl Ord for OrdTerm<'_>
impl Ord for OrdTerm<'_>
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
Auto Trait Implementations§
impl<'a> Freeze for OrdTerm<'a>
impl<'a> RefUnwindSafe for OrdTerm<'a>
impl<'a> Send for OrdTerm<'a>
impl<'a> Sync for OrdTerm<'a>
impl<'a> Unpin for OrdTerm<'a>
impl<'a> UnsafeUnpin for OrdTerm<'a>
impl<'a> UnwindSafe for OrdTerm<'a>
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.