pub struct GcNodeLink { /* private fields */ }Implementations§
Source§impl GcNodeLink
impl GcNodeLink
pub fn new(head: Option<NonNull<GcHead>>) -> Self
pub fn into_inner(self) -> Option<NonNull<GcHead>>
pub fn head(&self) -> Option<NonNull<GcHead>>
Sourcepub fn prepend(&mut self, node: NonNull<GcHead>)
pub fn prepend(&mut self, node: NonNull<GcHead>)
Prepend node to the head of the link, link head is updated
pub fn iter(&self) -> NodeLinkIter<'_>
pub fn len(&self) -> usize
pub fn filter_remove_with( &mut self, predicate: impl FnMut(&GcHead) -> bool, remove_fn: impl FnMut(NonNull<GcHead>), )
Trait Implementations§
Source§impl Clone for GcNodeLink
impl Clone for GcNodeLink
Source§fn clone(&self) -> GcNodeLink
fn clone(&self) -> GcNodeLink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GcNodeLink
impl Debug for GcNodeLink
Source§impl Default for GcNodeLink
impl Default for GcNodeLink
Source§fn default() -> GcNodeLink
fn default() -> GcNodeLink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Send for GcNodeLink
impl !Sync for GcNodeLink
impl Freeze for GcNodeLink
impl RefUnwindSafe for GcNodeLink
impl Unpin for GcNodeLink
impl UnsafeUnpin for GcNodeLink
impl UnwindSafe for GcNodeLink
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