pub struct CubicalPath<A: Clone> {
pub dim: usize,
/* private fields */
}Expand description
A cubical path from a to b in type A, parameterized by dimension n.
Models the CCHM interval type: I^n → A.
Fields§
§dim: usizeDimension of the path
Implementations§
Source§impl<A: Clone + 'static> CubicalPath<A>
impl<A: Clone + 'static> CubicalPath<A>
Sourcepub fn from_fn(f: impl Fn(bool) -> A + 'static) -> Self
pub fn from_fn(f: impl Fn(bool) -> A + 'static) -> Self
Construct a 1-dimensional path from a function [0,1] → A.
Sourcepub fn at(&self, face: Vec<bool>) -> A
pub fn at(&self, face: Vec<bool>) -> A
Evaluate the path at a face (a vector of booleans, one per dimension).
Sourcepub fn reverse(self) -> CubicalPath<A>where
A: 'static,
pub fn reverse(self) -> CubicalPath<A>where
A: 'static,
Reverse the path: i ↦ p(~i).
Auto Trait Implementations§
impl<A> Freeze for CubicalPath<A>
impl<A> !RefUnwindSafe for CubicalPath<A>
impl<A> !Send for CubicalPath<A>
impl<A> !Sync for CubicalPath<A>
impl<A> Unpin for CubicalPath<A>
impl<A> UnsafeUnpin for CubicalPath<A>
impl<A> !UnwindSafe for CubicalPath<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