Struct generational_cache::collections::list::Node
source · pub struct Node<T> {
pub value: T,
pub next: Option<Link>,
pub prev: Option<Link>,
}
Expand description
Represents a node in a linked list.
Fields§
§value: T
§next: Option<Link>
§prev: Option<Link>
Implementations§
source§impl<T> Node<T>
impl<T> Node<T>
pub fn with_value(value: T) -> Self
Trait Implementations§
source§impl<T: PartialEq> PartialEq for Node<T>
impl<T: PartialEq> PartialEq for Node<T>
impl<T: Copy> Copy for Node<T>
impl<T> StructuralPartialEq for Node<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Node<T>where T: RefUnwindSafe,
impl<T> Send for Node<T>where T: Send,
impl<T> Sync for Node<T>where T: Sync,
impl<T> Unpin for Node<T>where T: Unpin,
impl<T> UnwindSafe for Node<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