pub struct CofreeStream<A> {
pub elements: Vec<A>,
pub period: usize,
}Expand description
Cofree comonad: infinite stream with comonadic structure.
Fields§
§elements: Vec<A>§period: usizeImplementations§
Trait Implementations§
Source§impl<A: Clone> Clone for CofreeStream<A>
impl<A: Clone> Clone for CofreeStream<A>
Source§fn clone(&self) -> CofreeStream<A>
fn clone(&self) -> CofreeStream<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 CofreeStream<A>
impl<A> RefUnwindSafe for CofreeStream<A>where
A: RefUnwindSafe,
impl<A> Send for CofreeStream<A>where
A: Send,
impl<A> Sync for CofreeStream<A>where
A: Sync,
impl<A> Unpin for CofreeStream<A>where
A: Unpin,
impl<A> UnsafeUnpin for CofreeStream<A>
impl<A> UnwindSafe for CofreeStream<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