pub struct Node<'ast, T> { /* private fields */ }
Expand description
Node
is a specialized Cell
that holds a reference to T instead of T.
Node
has defined lifetime and implements Defer<Target = T>
for convenience.
Implementations
Trait Implementations
sourceimpl<'ast> From<Node<'ast, Expression<'ast>>> for ForInit<'ast>
impl<'ast> From<Node<'ast, Expression<'ast>>> for ForInit<'ast>
sourcefn from(val: ExpressionNode<'ast>) -> Self
fn from(val: ExpressionNode<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<Node<'ast, Expression<'ast>>> for Statement<'ast>
impl<'ast> From<Node<'ast, Expression<'ast>>> for Statement<'ast>
sourcefn from(val: ExpressionNode<'ast>) -> Self
fn from(val: ExpressionNode<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast, T: 'ast + PartialEq> PartialEq<Node<'ast, T>> for Node<'ast, T>
impl<'ast, T: 'ast + PartialEq> PartialEq<Node<'ast, T>> for Node<'ast, T>
impl<'ast, T: Copy> Copy for Node<'ast, T>
Auto Trait Implementations
impl<'ast, T> RefUnwindSafe for Node<'ast, T>where
T: RefUnwindSafe,
impl<'ast, T> Send for Node<'ast, T>
impl<'ast, T> !Sync for Node<'ast, T>
impl<'ast, T> Unpin for Node<'ast, T>
impl<'ast, T> UnwindSafe for Node<'ast, T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more