pub struct PoolPartition {
pub matching: Vec<InternedString>,
pub non_matching: Vec<InternedString>,
}Expand description
The result of partitioning a pool’s strings.
Fields§
§matching: Vec<InternedString>§non_matching: Vec<InternedString>Implementations§
Source§impl PoolPartition
impl PoolPartition
Sourcepub fn by<F>(pool: &StringPool, pred: F) -> Self
pub fn by<F>(pool: &StringPool, pred: F) -> Self
Partition all strings in a pool by predicate.
Sourcepub fn matching_count(&self) -> usize
pub fn matching_count(&self) -> usize
Number of matching strings.
Sourcepub fn non_matching_count(&self) -> usize
pub fn non_matching_count(&self) -> usize
Number of non-matching strings.
Auto Trait Implementations§
impl Freeze for PoolPartition
impl RefUnwindSafe for PoolPartition
impl Send for PoolPartition
impl Sync for PoolPartition
impl Unpin for PoolPartition
impl UnsafeUnpin for PoolPartition
impl UnwindSafe for PoolPartition
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