pub enum Cohesion {
Flat,
Continuous,
Sharp,
Squash,
}Expand description
Cohesion modalities see “Brouwer’s fixed-point theorem in real-cohesive homotopy type theory” (arXiv:1509.07584) types are now given an additional topological layer which the modalities interact with.
Variants§
Flat
Same points, discrete topology, idempotent comonad, box - like.
Continuous
Identity modality.
Sharp
Same points, codiscrete topology, idempotent monad, diamond-like.
Squash
Single point space, artificially added for Flat left-composition.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cohesion
impl<'de> Deserialize<'de> for Cohesion
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
Source§impl Ord for Cohesion
impl Ord for Cohesion
Source§impl PartialOrd for Cohesion
impl PartialOrd for Cohesion
impl Copy for Cohesion
impl Eq for Cohesion
impl StructuralPartialEq for Cohesion
Auto Trait Implementations§
impl Freeze for Cohesion
impl RefUnwindSafe for Cohesion
impl Send for Cohesion
impl Sync for Cohesion
impl Unpin for Cohesion
impl UnwindSafe for Cohesion
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