#[non_exhaustive]pub enum ResultGroupMap {
RoomId(BTreeMap<OwnedRoomId, ResultGroup>),
Sender(BTreeMap<OwnedUserId, ResultGroup>),
}Available on crate features
client or server only.Expand description
A map of results grouped by key.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RoomId(BTreeMap<OwnedRoomId, ResultGroup>)
Results grouped by room ID.
Sender(BTreeMap<OwnedUserId, ResultGroup>)
Results grouped by sender.
Implementations§
Source§impl ResultGroupMap
impl ResultGroupMap
Sourcepub fn grouping_key(&self) -> GroupingKey
pub fn grouping_key(&self) -> GroupingKey
The key that was used to group this map.
Sourcepub fn custom_map(&self) -> Option<&BTreeMap<String, ResultGroup>>
pub fn custom_map(&self) -> Option<&BTreeMap<String, ResultGroup>>
The map of grouped results, if this uses a custom key.
Sourcepub fn into_custom_map(self) -> Option<BTreeMap<String, ResultGroup>>
pub fn into_custom_map(self) -> Option<BTreeMap<String, ResultGroup>>
Convert this into the map of grouped results, if this uses a custom key.
Trait Implementations§
Source§impl Clone for ResultGroupMap
impl Clone for ResultGroupMap
Source§fn clone(&self) -> ResultGroupMap
fn clone(&self) -> ResultGroupMap
Returns a duplicate 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 Debug for ResultGroupMap
impl Debug for ResultGroupMap
Source§impl Extend<ResultGroupMap> for ResultGroupMapsByGroupingKey
impl Extend<ResultGroupMap> for ResultGroupMapsByGroupingKey
Source§fn extend<T: IntoIterator<Item = ResultGroupMap>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = ResultGroupMap>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<ResultGroupMap> for ResultGroupMapsByGroupingKey
impl FromIterator<ResultGroupMap> for ResultGroupMapsByGroupingKey
Source§fn from_iter<T: IntoIterator<Item = ResultGroupMap>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = ResultGroupMap>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl Freeze for ResultGroupMap
impl RefUnwindSafe for ResultGroupMap
impl Send for ResultGroupMap
impl Sync for ResultGroupMap
impl Unpin for ResultGroupMap
impl UnsafeUnpin for ResultGroupMap
impl UnwindSafe for ResultGroupMap
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,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more