pub struct Lattice { /* private fields */ }Expand description
Process-wide lattice. Single instance via Lattice::get.
Implementations§
Source§impl Lattice
impl Lattice
Sourcepub fn is_subtype(
&self,
child: &'static TypeNode,
parent: &'static TypeNode,
) -> bool
pub fn is_subtype( &self, child: &'static TypeNode, parent: &'static TypeNode, ) -> bool
true iff child is parent or a (transitive) descendant
of parent in the lattice. Walks the parent chain on the
first call for a given pair; subsequent calls hit the cache.
Auto Trait Implementations§
impl !Freeze for Lattice
impl RefUnwindSafe for Lattice
impl Send for Lattice
impl Sync for Lattice
impl Unpin for Lattice
impl UnsafeUnpin for Lattice
impl UnwindSafe for Lattice
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