Skip to main content

Basin

Struct Basin 

Source
pub struct Basin<P, F> {
    pub path: Vec<P>,
    pub length: F,
    pub witness: Vec<usize>,
}
Expand description

A distinct valley of the length functional: one geodesic from p to q that is a strict local minimum of length among nearby paths.

A homotopy class may contain several. Two edge-paths lie in the same basin exactly when the discrete geodesic flow carries them to the same geodesic โ€” which is what NerveComplex::basins uses as the label, rather than any combinatorial invariant of the edge-paths themselves. Homotopy cannot distinguish basins; only the flow can.

Fieldsยง

ยงpath: Vec<P>

The converged geodesic, as a polyline whose vertices lie on it.

ยงlength: F

Its exact arc length.

ยงwitness: Vec<usize>

The edge-path through the nerve that descended into this basin.

Trait Implementationsยง

Sourceยง

impl<P: Clone, F: Clone> Clone for Basin<P, F>

Sourceยง

fn clone(&self) -> Basin<P, F>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl<P: Debug, F: Debug> Debug for Basin<P, F>

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementationsยง

ยง

impl<P, F> Freeze for Basin<P, F>
where Vec<P>: Freeze, F: Freeze,

ยง

impl<P, F> RefUnwindSafe for Basin<P, F>

ยง

impl<P, F> Send for Basin<P, F>
where Vec<P>: Send, F: Send,

ยง

impl<P, F> Sync for Basin<P, F>
where Vec<P>: Sync, F: Sync,

ยง

impl<P, F> Unpin for Basin<P, F>
where Vec<P>: Unpin, F: Unpin,

ยง

impl<P, F> UnsafeUnpin for Basin<P, F>
where Vec<P>: UnsafeUnpin, F: UnsafeUnpin,

ยง

impl<P, F> UnwindSafe for Basin<P, F>
where Vec<P>: UnwindSafe, F: UnwindSafe,

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<๐’ž, X> Equivalent<๐’ž, X> for X
where ๐’ž: Cat,

Sourceยง

fn project(self) -> X

Sourceยง

fn lift(x: X) -> X

Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> OptionallyOption<T> for T

Sourceยง

fn into_option(self) -> Option<T>

Converts either permitted representation into Option<T>. Read more
Sourceยง

impl<T> Point for T
where T: Clone + Debug,

Sourceยง

impl<T> Reassociate for T

Sourceยง

fn reassociate<P>( self, ) -> <<Self as ReassociateKernel<P>>::Reassociated as NormalizeWith<Undecorated>>::Normalized
where Self: ReassociateKernel<P>, <Self as ReassociateKernel<P>>::Reassociated: NormalizeWith<Undecorated>,

Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.