pub type SetUnionWithTombstonesOptionSet<Item> = SetUnionWithTombstones<OptionSet<Item>, OptionSet<Item>>;
Expand description
Option
-backed SetUnionWithTombstones
lattice.
Aliased Type§
struct SetUnionWithTombstonesOptionSet<Item> { /* private fields */ }
Implementations
Source§impl<Set, TombstoneSet> SetUnionWithTombstones<Set, TombstoneSet>
impl<Set, TombstoneSet> SetUnionWithTombstones<Set, TombstoneSet>
Sourcepub fn new(set: Set, tombstones: TombstoneSet) -> Self
pub fn new(set: Set, tombstones: TombstoneSet) -> Self
Create a new SetUnionWithTombstones
from a Set
and TombstoneSet
.
Sourcepub fn new_from(
set: impl Into<Set>,
tombstones: impl Into<TombstoneSet>,
) -> Self
pub fn new_from( set: impl Into<Set>, tombstones: impl Into<TombstoneSet>, ) -> Self
Create a new SetUnionWithTombstones
from an Into<Set>
and an Into<TombstonesSet>
.
Sourcepub fn as_reveal_ref(&self) -> (&Set, &TombstoneSet)
pub fn as_reveal_ref(&self) -> (&Set, &TombstoneSet)
Reveal the inner value as a shared reference.
Sourcepub fn as_reveal_mut(&mut self) -> (&mut Set, &mut TombstoneSet)
pub fn as_reveal_mut(&mut self) -> (&mut Set, &mut TombstoneSet)
Reveal the inner value as an exclusive reference.
Sourcepub fn into_reveal(self) -> (Set, TombstoneSet)
pub fn into_reveal(self) -> (Set, TombstoneSet)
Gets the inner by value, consuming self.
Trait Implementations
Source§impl<Set: Clone, TombstoneSet: Clone> Clone for SetUnionWithTombstones<Set, TombstoneSet>
impl<Set: Clone, TombstoneSet: Clone> Clone for SetUnionWithTombstones<Set, TombstoneSet>
Source§fn clone(&self) -> SetUnionWithTombstones<Set, TombstoneSet>
fn clone(&self) -> SetUnionWithTombstones<Set, TombstoneSet>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Set: Default, TombstoneSet: Default> Default for SetUnionWithTombstones<Set, TombstoneSet>
impl<Set: Default, TombstoneSet: Default> Default for SetUnionWithTombstones<Set, TombstoneSet>
Source§fn default() -> SetUnionWithTombstones<Set, TombstoneSet>
fn default() -> SetUnionWithTombstones<Set, TombstoneSet>
Returns the “default value” for a type. Read more
Source§impl<Set, TombstoneSet> IsBot for SetUnionWithTombstones<Set, TombstoneSet>where
Set: Len,
TombstoneSet: Len,
impl<Set, TombstoneSet> IsBot for SetUnionWithTombstones<Set, TombstoneSet>where
Set: Len,
TombstoneSet: Len,
Source§impl<Set, TombstoneSet> IsTop for SetUnionWithTombstones<Set, TombstoneSet>
impl<Set, TombstoneSet> IsTop for SetUnionWithTombstones<Set, TombstoneSet>
Source§impl<SetSelf, TombstoneSetSelf, SetOther, TombstoneSetOther, Item> LatticeFrom<SetUnionWithTombstones<SetOther, TombstoneSetOther>> for SetUnionWithTombstones<SetSelf, TombstoneSetSelf>where
SetSelf: FromIterator<Item>,
SetOther: IntoIterator<Item = Item>,
TombstoneSetSelf: FromIterator<Item>,
TombstoneSetOther: IntoIterator<Item = Item>,
impl<SetSelf, TombstoneSetSelf, SetOther, TombstoneSetOther, Item> LatticeFrom<SetUnionWithTombstones<SetOther, TombstoneSetOther>> for SetUnionWithTombstones<SetSelf, TombstoneSetSelf>where
SetSelf: FromIterator<Item>,
SetOther: IntoIterator<Item = Item>,
TombstoneSetSelf: FromIterator<Item>,
TombstoneSetOther: IntoIterator<Item = Item>,
Source§fn lattice_from(
other: SetUnionWithTombstones<SetOther, TombstoneSetOther>,
) -> Self
fn lattice_from( other: SetUnionWithTombstones<SetOther, TombstoneSetOther>, ) -> Self
Convert from the
Other
lattice into Self
.Source§impl<Item, SetSelf, TombstoneSetSelf, SetOther, TombstoneSetOther> Merge<SetUnionWithTombstones<SetOther, TombstoneSetOther>> for SetUnionWithTombstones<SetSelf, TombstoneSetSelf>where
SetSelf: Extend<Item> + Len + for<'a> Remove<&'a Item>,
SetOther: IntoIterator<Item = Item>,
TombstoneSetSelf: Extend<Item> + Len + for<'a> Get<&'a Item>,
TombstoneSetOther: IntoIterator<Item = Item>,
impl<Item, SetSelf, TombstoneSetSelf, SetOther, TombstoneSetOther> Merge<SetUnionWithTombstones<SetOther, TombstoneSetOther>> for SetUnionWithTombstones<SetSelf, TombstoneSetSelf>where
SetSelf: Extend<Item> + Len + for<'a> Remove<&'a Item>,
SetOther: IntoIterator<Item = Item>,
TombstoneSetSelf: Extend<Item> + Len + for<'a> Get<&'a Item>,
TombstoneSetOther: IntoIterator<Item = Item>,
Source§fn merge(
&mut self,
other: SetUnionWithTombstones<SetOther, TombstoneSetOther>,
) -> bool
fn merge( &mut self, other: SetUnionWithTombstones<SetOther, TombstoneSetOther>, ) -> bool
Source§fn merge_owned(this: Self, delta: Other) -> Selfwhere
Self: Sized,
fn merge_owned(this: Self, delta: Other) -> Selfwhere
Self: Sized,
Merge
this
and delta
together, returning the new value.Source§impl<SetSelf, TombstoneSetSelf, SetOther, TombstoneSetOther, Item> PartialEq<SetUnionWithTombstones<SetOther, TombstoneSetOther>> for SetUnionWithTombstones<SetSelf, TombstoneSetSelf>where
SetSelf: Set<Item, Item = Item> + Iter,
SetOther: Set<Item, Item = Item> + Iter,
TombstoneSetSelf: Set<Item, Item = Item> + Iter,
TombstoneSetOther: Set<Item, Item = Item> + Iter,
impl<SetSelf, TombstoneSetSelf, SetOther, TombstoneSetOther, Item> PartialEq<SetUnionWithTombstones<SetOther, TombstoneSetOther>> for SetUnionWithTombstones<SetSelf, TombstoneSetSelf>where
SetSelf: Set<Item, Item = Item> + Iter,
SetOther: Set<Item, Item = Item> + Iter,
TombstoneSetSelf: Set<Item, Item = Item> + Iter,
TombstoneSetOther: Set<Item, Item = Item> + Iter,
Source§fn eq(
&self,
other: &SetUnionWithTombstones<SetOther, TombstoneSetOther>,
) -> bool
fn eq( &self, other: &SetUnionWithTombstones<SetOther, TombstoneSetOther>, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.