pub enum GroupCullState {
AllRejected,
AnyPick,
Mixed,
}Expand description
The derived cull state of a stack/burst (owner: Organization — Culling). A group never stores a flag of its own — this is computed from its members every time it is read, so grouping cannot diverge from the per-asset flags.
The precedence is exactly the doc’s: all-rejected → any-pick → else mixed.
Variants§
AllRejected
Every member is CullFlag::Reject — the whole group is a sweep candidate.
AnyPick
At least one member is CullFlag::Pick (and not every member is rejected).
Mixed
Neither all-rejected nor any-pick (e.g. some rejects mixed with neutrals, or an entirely undecided group).
Implementations§
Source§impl GroupCullState
impl GroupCullState
Sourcepub fn derive(flags: impl IntoIterator<Item = CullFlag>) -> Option<Self>
pub fn derive(flags: impl IntoIterator<Item = CullFlag>) -> Option<Self>
Derive a group’s state from its members’ flags, per the doc precedence
(all-rejected → any-pick → else mixed). Returns None for an empty group — there
are no members to derive a state from, and a vacuous “all rejected” would be wrong.
Trait Implementations§
Source§impl Clone for GroupCullState
impl Clone for GroupCullState
Source§fn clone(&self) -> GroupCullState
fn clone(&self) -> GroupCullState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GroupCullState
Source§impl Debug for GroupCullState
impl Debug for GroupCullState
impl Eq for GroupCullState
Source§impl PartialEq for GroupCullState
impl PartialEq for GroupCullState
Source§fn eq(&self, other: &GroupCullState) -> bool
fn eq(&self, other: &GroupCullState) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GroupCullState
Auto Trait Implementations§
impl Freeze for GroupCullState
impl RefUnwindSafe for GroupCullState
impl Send for GroupCullState
impl Sync for GroupCullState
impl Unpin for GroupCullState
impl UnsafeUnpin for GroupCullState
impl UnwindSafe for GroupCullState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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