pub struct PersistentClass {
pub id: BasisClassId,
pub group_id: IntervalGroupId,
pub basis_index: usize,
pub interval: Bar,
pub cocycle: Cocycle,
pub provenance: Option<PersistentClassProvenance>,
}Expand description
One vector in the declared basis of a persistent H1 class space.
Fields§
§id: BasisClassIdIdentifier derived from the class space, basis position, and cocycle.
group_id: IntervalGroupIdClass space that contains this basis vector.
basis_index: usizePosition in the canonical basis of the class space.
interval: BarH1 persistence interval.
cocycle: CocycleRepresentative on the caller’s graph.
provenance: Option<PersistentClassProvenance>Source binding for scalar Rips classes, when available.
Implementations§
Source§impl PersistentClass
impl PersistentClass
Sourcepub fn provenance(&self) -> Option<&PersistentClassProvenance>
pub fn provenance(&self) -> Option<&PersistentClassProvenance>
Source binding for a scalar Rips class, when available.
Sourcepub fn validate_provenance(&self, graph: &SparseDistanceMatrix) -> Result<()>
pub fn validate_provenance(&self, graph: &SparseDistanceMatrix) -> Result<()>
Check that this class belongs to the supplied active graph.
Trait Implementations§
Source§impl Clone for PersistentClass
impl Clone for PersistentClass
Source§fn clone(&self) -> PersistentClass
fn clone(&self) -> PersistentClass
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 PersistentClass
impl Debug for PersistentClass
Source§impl PartialEq for PersistentClass
impl PartialEq for PersistentClass
impl StructuralPartialEq for PersistentClass
Auto Trait Implementations§
impl Freeze for PersistentClass
impl RefUnwindSafe for PersistentClass
impl Send for PersistentClass
impl Sync for PersistentClass
impl Unpin for PersistentClass
impl UnsafeUnpin for PersistentClass
impl UnwindSafe for PersistentClass
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more