Struct nekolib_doc::ds::foldable_deque::FoldableDeque
source · pub struct FoldableDeque<M>where
M: Monoid,{ /* private fields */ }
Implementations§
source§impl<M> FoldableDeque<M>
impl<M> FoldableDeque<M>
pub fn new() -> FoldableDeque<M>where
M: Default,
pub fn push_back(&mut self, elt: <M as BinaryOp>::Set)
pub fn push_front(&mut self, elt: <M as BinaryOp>::Set)
pub fn pop_back(&mut self) -> Option<<M as BinaryOp>::Set>
pub fn pop_front(&mut self) -> Option<<M as BinaryOp>::Set>
pub fn fold(&self, _: RangeFull) -> <M as BinaryOp>::Set
Trait Implementations§
source§impl<M> Clone for FoldableDeque<M>
impl<M> Clone for FoldableDeque<M>
source§fn clone(&self) -> FoldableDeque<M>
fn clone(&self) -> FoldableDeque<M>
Returns a copy 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 moresource§impl<M> Debug for FoldableDeque<M>
impl<M> Debug for FoldableDeque<M>
source§impl<M> PartialEq for FoldableDeque<M>
impl<M> PartialEq for FoldableDeque<M>
impl<M> Eq for FoldableDeque<M>
impl<M> StructuralPartialEq for FoldableDeque<M>where
M: Monoid,
Auto Trait Implementations§
impl<M> Freeze for FoldableDeque<M>where
M: Freeze,
impl<M> RefUnwindSafe for FoldableDeque<M>
impl<M> Send for FoldableDeque<M>
impl<M> Sync for FoldableDeque<M>
impl<M> Unpin for FoldableDeque<M>
impl<M> UnwindSafe for FoldableDeque<M>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)