use std::borrow::Borrow; use std::cmp::Eq; use std::hash::Hash;
/// Abstracts the stack operations needed to track timeouts. pub(crate) trait Stack: Default { /// Type of the item stored in the stack type Owned: Borrow<Self::Borrowed>;
/// Borrowed item type Borrowed: Eq + Hash;
/// Item storage, this allows a slab to be used instead of just the heap type Store;
/// Returns `true` if the stack is empty fn is_empty(&self) -> bool;
/// Push an item onto the stack fn push(&mutself, item: Self::Owned, store: &mutSelf::Store);
/// Pop an item from the stack fn pop(&mutself, store: &mutSelf::Store) -> Option<Self::Owned>;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.