pub struct InstrStates { /* private fields */ }Expand description
The full set of states for an instruction.
Implementations§
Source§impl InstrStates
impl InstrStates
Sourcepub fn get_state(&self, path: &ElementPath) -> Option<&State>
pub fn get_state(&self, path: &ElementPath) -> Option<&State>
Get a state based on the path where that state starts.
Sourcepub fn state_starts(
&self,
) -> impl Iterator<Item = &ElementPath> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
pub fn state_starts( &self, ) -> impl Iterator<Item = &ElementPath> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
Get an iterator over the paths where the various states start.
Sourcepub fn states(
&self,
) -> impl Iterator<Item = (&ElementPath, &State)> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
pub fn states( &self, ) -> impl Iterator<Item = (&ElementPath, &State)> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
Get an iterator over all of the states along with their starting paths.
Sourcepub fn into_states(
self,
) -> <BTreeMap<ElementPathBuf, State> as IntoIterator>::IntoIter
pub fn into_states( self, ) -> <BTreeMap<ElementPathBuf, State> as IntoIterator>::IntoIter
Consume this InstrStates producing an iterator over the paths and states.
Trait Implementations§
Source§impl IntoIterator for InstrStates
impl IntoIterator for InstrStates
Source§type IntoIter = <BTreeMap<ElementPathBuf, State> as IntoIterator>::IntoIter
type IntoIter = <BTreeMap<ElementPathBuf, State> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§type Item = <BTreeMap<ElementPathBuf, State> as IntoIterator>::Item
type Item = <BTreeMap<ElementPathBuf, State> as IntoIterator>::Item
The type of the elements being iterated over.
Auto Trait Implementations§
impl Freeze for InstrStates
impl !RefUnwindSafe for InstrStates
impl !Send for InstrStates
impl !Sync for InstrStates
impl Unpin for InstrStates
impl !UnwindSafe for InstrStates
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