pub struct GraphlikeEdgeRef<'a> { /* private fields */ }Expand description
Borrowed edge view over the compact graphlike representation.
Implementations§
Source§impl GraphlikeEdgeRef<'_>
impl GraphlikeEdgeRef<'_>
pub fn detector_count(&self) -> usize
pub fn detectors( &self, ) -> impl ExactSizeIterator<Item = usize> + DoubleEndedIterator + '_
pub fn fault_observables( &self, ) -> impl ExactSizeIterator<Item = usize> + DoubleEndedIterator + '_
pub fn probability(&self) -> f64
pub fn weight(&self) -> f64
pub fn dem_edge_index(&self) -> usize
pub fn to_owned(self) -> GraphlikeEdge
Trait Implementations§
Source§impl<'a> Clone for GraphlikeEdgeRef<'a>
impl<'a> Clone for GraphlikeEdgeRef<'a>
impl<'a> Copy for GraphlikeEdgeRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for GraphlikeEdgeRef<'a>
impl<'a> RefUnwindSafe for GraphlikeEdgeRef<'a>
impl<'a> Send for GraphlikeEdgeRef<'a>
impl<'a> Sync for GraphlikeEdgeRef<'a>
impl<'a> Unpin for GraphlikeEdgeRef<'a>
impl<'a> UnsafeUnpin for GraphlikeEdgeRef<'a>
impl<'a> UnwindSafe for GraphlikeEdgeRef<'a>
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