pub struct PersistencePair {
pub birth: f64,
pub death: f64,
pub dimension: usize,
}Expand description
A single bar in a persistence barcode.
Fields§
§birth: f64§death: f64§dimension: usizeImplementations§
Source§impl PersistencePair
impl PersistencePair
pub fn persistence(&self) -> f64
Trait Implementations§
Source§impl Clone for PersistencePair
impl Clone for PersistencePair
Source§fn clone(&self) -> PersistencePair
fn clone(&self) -> PersistencePair
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 PersistencePair
impl Debug for PersistencePair
Source§impl<'de> Deserialize<'de> for PersistencePair
impl<'de> Deserialize<'de> for PersistencePair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PersistencePair
impl RefUnwindSafe for PersistencePair
impl Send for PersistencePair
impl Sync for PersistencePair
impl Unpin for PersistencePair
impl UnsafeUnpin for PersistencePair
impl UnwindSafe for PersistencePair
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