pub struct VecUnion<Lat> { /* private fields */ }
Expand description
Vec-union compound lattice.
Contains any number of Lat
sub-lattices. Sub-lattices are indexed starting at zero, merging
combines corresponding sub-lattices and keeps any excess.
Similar to MapUnion<<usize, Lat>>
but requires the key indices
start with 0
, 1
, 2
, etc: i.e. integers starting at zero with no gaps.
Implementations§
Source§impl<Lat> VecUnion<Lat>
impl<Lat> VecUnion<Lat>
Sourcepub fn new_from(vec: impl Into<Vec<Lat>>) -> Self
pub fn new_from(vec: impl Into<Vec<Lat>>) -> Self
Create a new VecUnion
from an Into<Vec<Lat>>
.
Sourcepub fn as_reveal_ref(&self) -> &Vec<Lat>
pub fn as_reveal_ref(&self) -> &Vec<Lat>
Reveal the inner value as a shared reference.
Sourcepub fn as_reveal_mut(&mut self) -> &mut Vec<Lat>
pub fn as_reveal_mut(&mut self) -> &mut Vec<Lat>
Reveal the inner value as an exclusive reference.
Sourcepub fn into_reveal(self) -> Vec<Lat>
pub fn into_reveal(self) -> Vec<Lat>
Gets the inner by value, consuming self.
Trait Implementations§
Source§impl<Lat> DeepReveal for VecUnion<Lat>where
Lat: DeepReveal,
impl<Lat> DeepReveal for VecUnion<Lat>where
Lat: DeepReveal,
Source§fn deep_reveal(self) -> Self::Revealed
fn deep_reveal(self) -> Self::Revealed
Reveals the underlying lattice types recursively.
Source§impl<LatSelf, LatOther> LatticeFrom<VecUnion<LatOther>> for VecUnion<LatSelf>where
LatSelf: LatticeFrom<LatOther>,
impl<LatSelf, LatOther> LatticeFrom<VecUnion<LatOther>> for VecUnion<LatSelf>where
LatSelf: LatticeFrom<LatOther>,
Source§fn lattice_from(other: VecUnion<LatOther>) -> Self
fn lattice_from(other: VecUnion<LatOther>) -> Self
Convert from the
Other
lattice into Self
.Source§impl<LatSelf, LatOther> Merge<VecUnion<LatOther>> for VecUnion<LatSelf>where
LatSelf: Merge<LatOther> + LatticeFrom<LatOther>,
impl<LatSelf, LatOther> Merge<VecUnion<LatOther>> for VecUnion<LatSelf>where
LatSelf: Merge<LatOther> + LatticeFrom<LatOther>,
Source§impl<LatSelf, LatOther> PartialEq<VecUnion<LatOther>> for VecUnion<LatSelf>where
LatSelf: PartialEq<LatOther>,
impl<LatSelf, LatOther> PartialEq<VecUnion<LatOther>> for VecUnion<LatSelf>where
LatSelf: PartialEq<LatOther>,
Source§impl<LatSelf, LatOther> PartialOrd<VecUnion<LatOther>> for VecUnion<LatSelf>where
LatSelf: PartialOrd<LatOther>,
impl<LatSelf, LatOther> PartialOrd<VecUnion<LatOther>> for VecUnion<LatSelf>where
LatSelf: PartialOrd<LatOther>,
impl<Lat: Eq> Eq for VecUnion<Lat>
impl<LatSelf, LatOther> LatticeOrd<VecUnion<LatOther>> for VecUnion<LatSelf>where
Self: PartialOrd<VecUnion<LatOther>>,
Auto Trait Implementations§
impl<Lat> Freeze for VecUnion<Lat>
impl<Lat> RefUnwindSafe for VecUnion<Lat>where
Lat: RefUnwindSafe,
impl<Lat> Send for VecUnion<Lat>where
Lat: Send,
impl<Lat> Sync for VecUnion<Lat>where
Lat: Sync,
impl<Lat> Unpin for VecUnion<Lat>where
Lat: Unpin,
impl<Lat> UnwindSafe for VecUnion<Lat>where
Lat: UnwindSafe,
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<This, Other> NaiveLatticeOrd<Other> for This
impl<This, Other> NaiveLatticeOrd<Other> for This
Source§fn naive_cmp(&self, other: &Rhs) -> Option<Ordering>
fn naive_cmp(&self, other: &Rhs) -> Option<Ordering>
Naive compare based on the
Merge::merge
method. This method can be very inefficient;
use PartialOrd::partial_cmp
instead. Read more