pub enum Operation<T> {
Push(T),
Pop,
}
Expand description
Stack operation.
Variants§
Implementations§
Trait Implementations§
Source§impl<T> Extend<Operation<T>> for LinkedList<T>
impl<T> Extend<Operation<T>> for LinkedList<T>
Source§fn extend<I: IntoIterator<Item = Operation<T>>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = Operation<T>>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T> Extend<Operation<T>> for Vec<T>
impl<T> Extend<Operation<T>> for Vec<T>
Source§fn extend<I: IntoIterator<Item = Operation<T>>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = Operation<T>>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T> Extend<Operation<T>> for VecDeque<T>
impl<T> Extend<Operation<T>> for VecDeque<T>
Source§fn extend<I: IntoIterator<Item = Operation<T>>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = Operation<T>>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl<T: Copy> Copy for Operation<T>
impl<T: Eq> Eq for Operation<T>
impl<T> StructuralPartialEq for Operation<T>
Auto Trait Implementations§
impl<T> Freeze for Operation<T>where
T: Freeze,
impl<T> RefUnwindSafe for Operation<T>where
T: RefUnwindSafe,
impl<T> Send for Operation<T>where
T: Send,
impl<T> Sync for Operation<T>where
T: Sync,
impl<T> Unpin for Operation<T>where
T: Unpin,
impl<T> UnwindSafe for Operation<T>where
T: 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