Skip to main content

HalfMultisetJoinState

Struct HalfMultisetJoinState 

Source
pub struct HalfMultisetJoinState<Key, ValBuild, ValProbe> { /* private fields */ }
Available on crate feature std only.
Expand description

HalfJoinState with multiset semantics.

Allows duplicate key-value pairs to be stored.

Trait Implementations§

Source§

impl<Key: Debug, ValBuild: Debug, ValProbe: Debug> Debug for HalfMultisetJoinState<Key, ValBuild, ValProbe>

Source§

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

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

impl<Key, ValBuild, ValProbe> Default for HalfMultisetJoinState<Key, ValBuild, ValProbe>

Source§

fn default() -> Self

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

impl<Key, ValBuild, ValProbe> HalfJoinState<Key, ValBuild, ValProbe> for HalfMultisetJoinState<Key, ValBuild, ValProbe>
where Key: Clone + Eq + Hash, ValBuild: Clone, ValProbe: Clone,

Source§

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)>

Probe the join state for matches with the given key and value. Read more
Source§

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)>

Pop a stored match from previous probe calls.
Source§

fn len(&self) -> usize

Returns the number of keys in the join state.
Source§

fn iter(&self) -> Iter<'_, Key, SmallVec<[ValBuild; 1]>>

Returns an iterator over all entries in the state.
Source§

fn clear(&mut self)

Clear the state without de-allocating.
Source§

fn is_empty(&self) -> bool

Returns true if the state is empty.

Auto Trait Implementations§

§

impl<Key, ValBuild, ValProbe> Freeze for HalfMultisetJoinState<Key, ValBuild, ValProbe>

§

impl<Key, ValBuild, ValProbe> RefUnwindSafe for HalfMultisetJoinState<Key, ValBuild, ValProbe>
where Key: RefUnwindSafe, ValProbe: RefUnwindSafe, ValBuild: RefUnwindSafe,

§

impl<Key, ValBuild, ValProbe> Send for HalfMultisetJoinState<Key, ValBuild, ValProbe>
where Key: Send, ValProbe: Send, ValBuild: Send,

§

impl<Key, ValBuild, ValProbe> Sync for HalfMultisetJoinState<Key, ValBuild, ValProbe>
where Key: Sync, ValProbe: Sync, ValBuild: Sync,

§

impl<Key, ValBuild, ValProbe> Unpin for HalfMultisetJoinState<Key, ValBuild, ValProbe>
where Key: Unpin, ValProbe: Unpin, ValBuild: Unpin,

§

impl<Key, ValBuild, ValProbe> UnsafeUnpin for HalfMultisetJoinState<Key, ValBuild, ValProbe>

§

impl<Key, ValBuild, ValProbe> UnwindSafe for HalfMultisetJoinState<Key, ValBuild, ValProbe>
where Key: UnwindSafe, ValBuild: RefUnwindSafe + UnwindSafe, ValProbe: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.