[−][src]Trait gf::support::lattice::Top
A type that has a designated top element, ⊤.
Option<()>
is a trivial lattice
Option<()>
implements Top
with Some(())
as ⊤, and Bottom
with None
as ⊥. Therefore, it is a trivial lattice {⊥, ⊤}. We use Option<()>
in
place of bool
to indicate success or failure in lattice contexts.
Blanket implementations
- A blanket implementation is provided for 2- and 3-tuples of
Top
implementors where if all of the tuple elements are ⊤, the tuple is also considered ⊤. - A blanket implementation is provided for
Top
implementors wrapped inArc
,Box
, orRc
.
Required methods
Loading content...Provided methods
fn reset_to_top(&mut self)
Reset self
to ⊤.
The default implementation assigns self
to what top
returns. In
many cases, a more efficient implementation is possible.
Implementations on Foreign Types
impl Top for Option<()>
[src]
impl<A: Top, B: Top> Top for (A, B)
[src]
impl<A: Top, B: Top, C: Top> Top for (A, B, C)
[src]
impl<T: Top> Top for Arc<T>
[src]
impl<T: Top> Top for Box<T>
[src]
impl<T: Top> Top for Rc<T>
[src]
Loading content...Implementors
impl<'a> Top for ConcolicState<'a>
[src]
impl<'a> Top for SymbolicState<'a>
[src]
impl<'a, A, V, S> Top for State<'a, A, V, S> where
V: Bottom + Clone + Eq + Top,
S: Clone + SpaceState<A, V>,
[src]
V: Bottom + Clone + Eq + Top,
S: Clone + SpaceState<A, V>,