pub struct ValRef<'node, T: 'node> { /* private fields */ }
Expand description
A ValRef
is a passive item, which provides mutable access to a single
node.
Implementations§
Source§impl<'node, T: 'node> ValRef<'node, T>
impl<'node, T: 'node> ValRef<'node, T>
Sourcepub fn insert_before(&mut self, val: T) -> ValRef<'node, T>
pub fn insert_before(&mut self, val: T) -> ValRef<'node, T>
Inserts a new element before this element and returns a ValRef
to the
newly inserted element.
Sourcepub fn insert_after(&mut self, val: T) -> ValRef<'node, T>
pub fn insert_after(&mut self, val: T) -> ValRef<'node, T>
Inserts a new element after this element and returns a ValRef
to the
newly inserted element.
Trait Implementations§
Auto Trait Implementations§
impl<'node, T> Freeze for ValRef<'node, T>
impl<'node, T> !RefUnwindSafe for ValRef<'node, T>
impl<'node, T> !Send for ValRef<'node, T>
impl<'node, T> !Sync for ValRef<'node, T>
impl<'node, T> Unpin for ValRef<'node, T>
impl<'node, T> !UnwindSafe for ValRef<'node, T>
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