pub struct ValidatedMoves { /* private fields */ }Expand description
A lane group proven executable against the AtomStateData it was
validated with.
Obtainable only from AtomStateData::validate_moves, which makes
“apply without validating” unrepresentable: AtomStateData::apply_validated
takes this token and is total — no collision, no silent skip.
The token captures resolved mover assignments against the pre-move state, so it must be applied to the same state it was validated against.
Implementations§
Source§impl ValidatedMoves
impl ValidatedMoves
Sourcepub fn movers(&self) -> &[(u32, LocationAddr, LocationAddr, LaneAddr)]
pub fn movers(&self) -> &[(u32, LocationAddr, LocationAddr, LaneAddr)]
The resolved (qubit, src, dst, lane) mover assignments.
Trait Implementations§
Source§impl Clone for ValidatedMoves
impl Clone for ValidatedMoves
Source§fn clone(&self) -> ValidatedMoves
fn clone(&self) -> ValidatedMoves
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidatedMoves
impl Debug for ValidatedMoves
impl Eq for ValidatedMoves
Source§impl PartialEq for ValidatedMoves
impl PartialEq for ValidatedMoves
Source§fn eq(&self, other: &ValidatedMoves) -> bool
fn eq(&self, other: &ValidatedMoves) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValidatedMoves
Auto Trait Implementations§
impl Freeze for ValidatedMoves
impl RefUnwindSafe for ValidatedMoves
impl Send for ValidatedMoves
impl Sync for ValidatedMoves
impl Unpin for ValidatedMoves
impl UnsafeUnpin for ValidatedMoves
impl UnwindSafe for ValidatedMoves
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
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
Compare self to
key and return true if they are equal.§impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef].