pub struct Node<A> { /* private fields */ }
Expand description
Node of the calculation graph.
This struct keeps the last value, and Graph
calculates the derivative
using this value.
Implementations
sourceimpl<A> Node<A>
impl<A> Node<A>
sourcepub fn is_variable(&self) -> bool
pub fn is_variable(&self) -> bool
Check the node is variable
Trait Implementations
sourceimpl<'de, A> Deserialize<'de> for Node<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for Node<A>where
A: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<A> RefUnwindSafe for Node<A>where
A: RefUnwindSafe,
impl<A> Send for Node<A>where
A: Send,
impl<A> Sync for Node<A>where
A: Sync,
impl<A> Unpin for Node<A>where
A: Unpin,
impl<A> UnwindSafe for Node<A>where
A: UnwindSafe,
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