Type Alias SetUnionArray

Source
pub type SetUnionArray<Item, const N: usize> = SetUnion<ArraySet<Item, N>>;
Expand description

Aliased Type§

struct SetUnionArray<Item, const N: usize>(pub ArraySet<Item, N>);

Fields§

§0: ArraySet<Item, N>

Implementations

Source§

impl<Set> SetUnion<Set>

Source

pub fn new(val: Set) -> Self

Create a new SetUnion from a Set.

Source

pub fn new_from(val: impl Into<Set>) -> Self

Create a new SetUnion from an Into<Set>.

Source

pub fn as_reveal_ref(&self) -> &Set

Reveal the inner value as a shared reference.

Source

pub fn as_reveal_mut(&mut self) -> &mut Set

Reveal the inner value as an exclusive reference.

Source

pub fn into_reveal(self) -> Set

Gets the inner by value, consuming self.

Trait Implementations

Source§

impl<Set, Item> Atomize for SetUnion<Set>
where Set: Len + IntoIterator<Item = Item> + Extend<Item>, Set::IntoIter: 'static, Item: 'static,

Source§

type Atom = SetUnion<SingletonSet<Item>>

The type of atoms for this lattice.
Source§

type AtomIter = Box<dyn Iterator<Item = <SetUnion<Set> as Atomize>::Atom>>

The iter type iterating the antichain atoms.
Source§

fn atomize(self) -> Self::AtomIter

Atomize self: convert into an iter of atoms. Read more
Source§

impl<Set: Clone> Clone for SetUnion<Set>

Source§

fn clone(&self) -> SetUnion<Set>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Set: Debug> Debug for SetUnion<Set>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Set> DeepReveal for SetUnion<Set>

Source§

type Revealed = Set

The underlying type when revealed.
Source§

fn deep_reveal(self) -> Self::Revealed

Reveals the underlying lattice types recursively.
Source§

impl<Set: Default> Default for SetUnion<Set>

Source§

fn default() -> SetUnion<Set>

Returns the “default value” for a type. Read more
Source§

impl<'de, Set> Deserialize<'de> for SetUnion<Set>
where Set: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<Set> IsBot for SetUnion<Set>
where Set: Len,

Source§

fn is_bot(&self) -> bool

Returns if self is lattice bottom (⊥). Read more
Source§

impl<Set> IsTop for SetUnion<Set>

Source§

fn is_top(&self) -> bool

Returns if self is lattice top (⊤). Read more
Source§

impl<SetSelf, SetOther, Item> LatticeFrom<SetUnion<SetOther>> for SetUnion<SetSelf>
where SetSelf: FromIterator<Item>, SetOther: IntoIterator<Item = Item>,

Source§

fn lattice_from(other: SetUnion<SetOther>) -> Self

Convert from the Other lattice into Self.
Source§

impl<SetSelf, SetOther, Item> Merge<SetUnion<SetOther>> for SetUnion<SetSelf>
where SetSelf: Extend<Item> + Len, SetOther: IntoIterator<Item = Item>,

Source§

fn merge(&mut self, other: SetUnion<SetOther>) -> bool

Merge other into the self lattice. Read more
Source§

fn merge_owned(this: Self, delta: Other) -> Self
where Self: Sized,

Merge this and delta together, returning the new value.
Source§

impl<SetSelf, SetOther, Item> PartialEq<SetUnion<SetOther>> for SetUnion<SetSelf>
where SetSelf: Set<Item, Item = Item> + Iter, SetOther: Set<Item, Item = Item> + Iter,

Source§

fn eq(&self, other: &SetUnion<SetOther>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<SetSelf, SetOther, Item> PartialOrd<SetUnion<SetOther>> for SetUnion<SetSelf>
where SetSelf: Set<Item, Item = Item> + Iter, SetOther: Set<Item, Item = Item> + Iter,

Source§

fn partial_cmp(&self, other: &SetUnion<SetOther>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<Set> Serialize for SetUnion<Set>
where Set: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<Set: Copy> Copy for SetUnion<Set>

Source§

impl<SetSelf> Eq for SetUnion<SetSelf>
where Self: PartialEq,

Source§

impl<SetSelf, SetOther> LatticeOrd<SetUnion<SetOther>> for SetUnion<SetSelf>
where Self: PartialOrd<SetUnion<SetOther>>,