#[non_exhaustive]pub struct GroupRank {
pub in_use: bool,
pub live: bool,
pub cut: u8,
pub start: bool,
}Expand description
Where a group ranks: how much a pick inside it would narrow the set.
A group is offered first when picking in it cuts the most, which the app
measures from its results (tagtree’s rank_groups is one way). Nothing
here names a group, so the order moves as the set narrows.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.in_use: boolA pick sits inside it already.
live: boolSome pick inside it would still leave results. A dead group says so rather than offering choices that empty the set.
cut: u8How hard a pick here cuts, from 0 to 100, against the best group on offer: what a bar draws.
start: boolThe best group not yet in use: where a newcomer should start.
Implementations§
Trait Implementations§
impl Copy for GroupRank
impl Eq for GroupRank
impl StructuralPartialEq for GroupRank
Auto Trait Implementations§
impl Forget for GroupRank
impl Freeze for GroupRank
impl RefUnwindSafe for GroupRank
impl Send for GroupRank
impl Sync for GroupRank
impl Unpin for GroupRank
impl UnsafeUnpin for GroupRank
impl UnwindSafe for GroupRank
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