Skip to content

Commit

Permalink
feat(lattices): Make Pair<> members public (#1233)
Browse files Browse the repository at this point in the history
Summary of types examined:

- `Min<T>`: T is not a lattice
- `set_union<T>`: is not a lattice
- map_union - not safe to expose map
- union_find<K> - K is not a lattice
- VecUnion<Lat> - not safe to expose vec
- WithTop<Lat>/WithBot<Lat> - already pub
- Pair<LatA, LatB> - Changed in this commit
- DomPair<LatKey, LatVal> - Already correctly done with left pub and
right private.
- Conflict<T> / Point<T> - T is not a lattice type.
- () - No nested types here.
  • Loading branch information
rohitkulshreshtha authored May 24, 2024
1 parent 658f648 commit 0ed1f26
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lattices/src/pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ use crate::{DeepReveal, IsBot, IsTop, LatticeBimorphism, LatticeFrom, LatticeOrd
#[derive(Copy, Clone, Debug, Default, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Pair<LatA, LatB> {
a: LatA,
b: LatB,
/// The "left" Lattice of the Pair lattice.
pub a: LatA,

/// The "right" Lattice of the Pair lattice.
pub b: LatB,
}

impl<LatA, LatB> Pair<LatA, LatB> {
Expand Down

0 comments on commit 0ed1f26

Please sign in to comment.