rustc_mir_dataflow::framework::lattice

Trait HasBottom

source
pub trait HasBottom {
    const BOTTOM: Self;

    // Required method
    fn is_bottom(&self) -> bool;
}
Expand description

A set that has a “bottom” element, which is less than or equal to any other element.

Required Associated Constants§

source

const BOTTOM: Self

Required Methods§

source

fn is_bottom(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl HasBottom for bool

source§

const BOTTOM: Self = false

source§

fn is_bottom(&self) -> bool

Implementors§

source§

impl<T> HasBottom for FlatSet<T>

source§

const BOTTOM: Self = Self::Bottom

source§

impl<T> HasBottom for MaybeReachable<T>

source§

const BOTTOM: Self = MaybeReachable::Unreachable