pub struct HalfSetJoinState<Key, ValBuild, ValProbe> { /* private fields */ }Available on crate feature
std only.Expand description
HalfJoinState with set semantics.
Duplicate key-value pairs are not stored; only unique pairs are kept.
Trait Implementations§
Source§impl<Key: Debug, ValBuild: Debug, ValProbe: Debug> Debug for HalfSetJoinState<Key, ValBuild, ValProbe>
impl<Key: Debug, ValBuild: Debug, ValProbe: Debug> Debug for HalfSetJoinState<Key, ValBuild, ValProbe>
Source§impl<Key, ValBuild, ValProbe> Default for HalfSetJoinState<Key, ValBuild, ValProbe>
impl<Key, ValBuild, ValProbe> Default for HalfSetJoinState<Key, ValBuild, ValProbe>
Source§impl<Key, ValBuild, ValProbe> HalfJoinState<Key, ValBuild, ValProbe> for HalfSetJoinState<Key, ValBuild, ValProbe>
impl<Key, ValBuild, ValProbe> HalfJoinState<Key, ValBuild, ValProbe> for HalfSetJoinState<Key, ValBuild, ValProbe>
Source§fn build(&mut self, k: Key, v: Cow<'_, ValBuild>) -> bool
fn build(&mut self, k: Key, v: Cow<'_, ValBuild>) -> bool
Insert a key-value pair into the join state. Read more
Source§fn probe(&mut self, k: &Key, v: &ValProbe) -> Option<(Key, ValProbe, ValBuild)>
fn probe(&mut self, k: &Key, v: &ValProbe) -> Option<(Key, ValProbe, ValBuild)>
Probe the join state for matches with the given key and value. Read more
Source§fn full_probe(&self, k: &Key) -> Iter<'_, ValBuild>
fn full_probe(&self, k: &Key) -> Iter<'_, ValBuild>
Returns an iterator over all values for a given key.
Source§fn pop_match(&mut self) -> Option<(Key, ValProbe, ValBuild)>
fn pop_match(&mut self) -> Option<(Key, ValProbe, ValBuild)>
Pop a stored match from previous
probe calls.Source§fn iter(&self) -> Iter<'_, Key, SmallVec<[ValBuild; 1]>>
fn iter(&self) -> Iter<'_, Key, SmallVec<[ValBuild; 1]>>
Returns an iterator over all entries in the state.
Auto Trait Implementations§
impl<Key, ValBuild, ValProbe> Freeze for HalfSetJoinState<Key, ValBuild, ValProbe>
impl<Key, ValBuild, ValProbe> RefUnwindSafe for HalfSetJoinState<Key, ValBuild, ValProbe>
impl<Key, ValBuild, ValProbe> Send for HalfSetJoinState<Key, ValBuild, ValProbe>
impl<Key, ValBuild, ValProbe> Sync for HalfSetJoinState<Key, ValBuild, ValProbe>
impl<Key, ValBuild, ValProbe> Unpin for HalfSetJoinState<Key, ValBuild, ValProbe>
impl<Key, ValBuild, ValProbe> UnsafeUnpin for HalfSetJoinState<Key, ValBuild, ValProbe>
impl<Key, ValBuild, ValProbe> UnwindSafe for HalfSetJoinState<Key, ValBuild, ValProbe>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more