Skip to main content

Module linked_list

Module linked_list 

1.36.0 ยท Source
Expand description

A doubly-linked list with owned nodes.

The LinkedList allows pushing and popping elements at either end in constant time.

NOTE: It is almost always better to use Vec or VecDeque because array-based containers are generally faster, more memory efficient, and make better use of CPU cache.

Re-exportsยง

use core::alloc::AllocatorClone; ๐Ÿ”’ Experimental
use core::cmp::Ordering; ๐Ÿ”’
use core::hash::Hash; ๐Ÿ”’
use core::hash::Hash; ๐Ÿ”’
use core::hash::Hasher; ๐Ÿ”’
use core::iter::FusedIterator; ๐Ÿ”’
use core::iter::TrustedLen; ๐Ÿ”’ Experimental
use core::marker::PhantomData; ๐Ÿ”’
use core::ptr::NonNull; ๐Ÿ”’
use core::fmt; ๐Ÿ”’
use core::mem; ๐Ÿ”’
use super::SpecExtend; ๐Ÿ”’
use crate::alloc::Allocator; ๐Ÿ”’
use crate::alloc::Global; ๐Ÿ”’
use crate::boxed::Box; ๐Ÿ”’

Structsยง

ExtractIf
This struct is created by the extract_if method on LinkedList.
IntoIter
An owning iterator over the elements of a LinkedList.
Iter
An iterator over the elements of a LinkedList.
IterMut
A mutable iterator over the elements of a LinkedList.
LinkedList
A doubly-linked list with owned nodes.
Node ๐Ÿ”’
CursorExperimental
A cursor over a LinkedList.
CursorMutExperimental
A cursor over a LinkedList with editing operations.

Functionsยง

assert_covariance ๐Ÿ”’