pub struct NodeDetectorView<'a> { /* private fields */ }Expand description
A borrowed detector row, mapped into instance space on demand.
Implementations§
Source§impl NodeDetectorView<'_>
impl NodeDetectorView<'_>
Sourcepub fn address(&self) -> NodeDetectorAddress
pub fn address(&self) -> NodeDetectorAddress
Stable address of this row within the node.
Sourcepub fn terms(
&self,
) -> impl Iterator<Item = DetectorTerm<InstanceMeasurement>> + '_
pub fn terms( &self, ) -> impl Iterator<Item = DetectorTerm<InstanceMeasurement>> + '_
Terms mapped to bound instances, in source term order.
Sourcepub fn measurements(&self) -> impl Iterator<Item = InstanceMeasurement> + '_
pub fn measurements(&self) -> impl Iterator<Item = InstanceMeasurement> + '_
Measurement terms only, in source term order.
Sourcepub fn coords(&self) -> Option<impl Iterator<Item = f64> + '_>
pub fn coords(&self) -> Option<impl Iterator<Item = f64> + '_>
Coordinates translated by the bundle use’s spatial offset.
Sourcepub fn parity(&self) -> NodeDetectorParity
pub fn parity(&self) -> NodeDetectorParity
Materialize and canonicalize the bound parity, including alias cancellation.
Sourcepub fn to_owned(&self) -> NodeDetector
pub fn to_owned(&self) -> NodeDetector
Materialize the bound detector and its translated coordinates.
Trait Implementations§
Source§impl<'a> Clone for NodeDetectorView<'a>
impl<'a> Clone for NodeDetectorView<'a>
Source§fn clone(&self) -> NodeDetectorView<'a>
fn clone(&self) -> NodeDetectorView<'a>
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 moreimpl<'a> Copy for NodeDetectorView<'a>
Auto Trait Implementations§
impl<'a> Freeze for NodeDetectorView<'a>
impl<'a> RefUnwindSafe for NodeDetectorView<'a>
impl<'a> Send for NodeDetectorView<'a>
impl<'a> Sync for NodeDetectorView<'a>
impl<'a> Unpin for NodeDetectorView<'a>
impl<'a> UnsafeUnpin for NodeDetectorView<'a>
impl<'a> UnwindSafe for NodeDetectorView<'a>
Blanket Implementations§
§impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
fn assign_index(&mut self, index: usize, to: bool)
fn negate_index(&mut self, index: usize)
fn clear_bits(&mut self)
fn assign_random(
&mut self,
bit_count: usize,
random_number_generator: &mut impl RngExt,
)where
BorrowedSelf: BitLength,
§impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
fn assign(&mut self, other: &Other)
fn bitxor_assign(&mut self, other: &Other)
fn bitand_assign(&mut self, other: &Other)
fn bitor_assign(&mut self, other: &Other)
§impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
§impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
fn index(&self, index: usize) -> bool
fn weight(&self) -> usize
fn parity(&self) -> bool
fn is_zero(&self) -> bool
fn is_unit(&self, index: usize) -> bool
fn support<'a>(&'a self) -> impl SortedIteratorwhere
BorrowedSelf: 'a,
fn max_support(&self) -> Option<usize>
fn min_support(&self) -> Option<usize>
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