pub struct YonedaEmbedding<A: Clone> {
pub object: A,
pub morphism_count: usize,
}Expand description
Yoneda lemma embedding: Hom(A, -) ≅ F where F is a functor.
Fields§
§object: A§morphism_count: usizeImplementations§
Source§impl<A: Clone> YonedaEmbedding<A>
impl<A: Clone> YonedaEmbedding<A>
pub fn new(object: A) -> Self
Sourcepub fn add_morphism(self) -> Self
pub fn add_morphism(self) -> Self
Register a morphism (conceptually). Returns updated count.
Trait Implementations§
Source§impl<A: Clone + Clone> Clone for YonedaEmbedding<A>
impl<A: Clone + Clone> Clone for YonedaEmbedding<A>
Source§fn clone(&self) -> YonedaEmbedding<A>
fn clone(&self) -> YonedaEmbedding<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<A> Freeze for YonedaEmbedding<A>where
A: Freeze,
impl<A> RefUnwindSafe for YonedaEmbedding<A>where
A: RefUnwindSafe,
impl<A> Send for YonedaEmbedding<A>where
A: Send,
impl<A> Sync for YonedaEmbedding<A>where
A: Sync,
impl<A> Unpin for YonedaEmbedding<A>where
A: Unpin,
impl<A> UnsafeUnpin for YonedaEmbedding<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for YonedaEmbedding<A>where
A: UnwindSafe,
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