pub struct IssueStateSet<C>where
C: Condition,{ /* private fields */ }Expand description
Set of issue states
This set of issue states is intended for the efficient computation of an issue’s state.
Implementations§
Source§impl<C> IssueStateSet<C>where
C: Condition,
impl<C> IssueStateSet<C>where
C: Condition,
Sourcepub fn from_set(states: BTreeSet<Arc<IssueState<C>>>) -> Result<Self>
pub fn from_set(states: BTreeSet<Arc<IssueState<C>>>) -> Result<Self>
Create an issue state set from a orderd set of issue states
§Note:
The set provided must be the (transitive) closure of all its elements regarding its relations to other sets: if a state is in the set, all states related to it must also be in the set. No explicit checking is performed to assert this property.
Sourcepub fn iter(&self) -> Iter<'_, Arc<IssueState<C>>>
pub fn iter(&self) -> Iter<'_, Arc<IssueState<C>>>
Get an iterator for iterating over the issue states within the set
This iterator will yield an issue state only after all its dependencies.
Trait Implementations§
Source§impl<C> Default for IssueStateSet<C>where
C: Condition,
impl<C> Default for IssueStateSet<C>where
C: Condition,
Source§impl<C> From<Vec<Arc<IssueState<C>>>> for IssueStateSet<C>where
C: Condition,
Create an issue state set directly from a vector
impl<C> From<Vec<Arc<IssueState<C>>>> for IssueStateSet<C>where
C: Condition,
Create an issue state set directly from a vector
§Warning
Within the vector, the states must appear ordered by dependency: all dependencies of a state must appear before the state itself!
Source§impl<C> Resolvable<C> for IssueStateSet<C>where
C: Condition,
impl<C> Resolvable<C> for IssueStateSet<C>where
C: Condition,
Source§fn issue_state(&self, issue: &C::Issue) -> Result<Option<Arc<IssueState<C>>>>
fn issue_state(&self, issue: &C::Issue) -> Result<Option<Arc<IssueState<C>>>>
Resolve the state for a given issue Read more
Auto Trait Implementations§
impl<C> Freeze for IssueStateSet<C>
impl<C> RefUnwindSafe for IssueStateSet<C>where
C: RefUnwindSafe,
impl<C> Send for IssueStateSet<C>
impl<C> Sync for IssueStateSet<C>
impl<C> Unpin for IssueStateSet<C>
impl<C> UnwindSafe for IssueStateSet<C>where
C: RefUnwindSafe,
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