pub enum PrimitiveValue<Op: GraphOperation> {
Local(LocalValueId),
External(ValueKey<Op>),
}Expand description
Reference to a value available to a primitive AD rule.
Variants§
Local(LocalValueId)
Value produced inside the graph being built.
External(ValueKey<Op>)
Value from the source primitive computation graph.
Trait Implementations§
Source§impl<Op: Clone + GraphOperation> Clone for PrimitiveValue<Op>
impl<Op: Clone + GraphOperation> Clone for PrimitiveValue<Op>
Source§fn clone(&self) -> PrimitiveValue<Op>
fn clone(&self) -> PrimitiveValue<Op>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Op: Debug + GraphOperation> Debug for PrimitiveValue<Op>
impl<Op: Debug + GraphOperation> Debug for PrimitiveValue<Op>
Source§impl<Op: GraphOperation> From<PrimitiveValue<Op>> for ValueRef<Op>
impl<Op: GraphOperation> From<PrimitiveValue<Op>> for ValueRef<Op>
Source§fn from(value: PrimitiveValue<Op>) -> Self
fn from(value: PrimitiveValue<Op>) -> Self
Converts to this type from the input type.
Source§impl<Op: GraphOperation> From<ValueRef<Op>> for PrimitiveValue<Op>
impl<Op: GraphOperation> From<ValueRef<Op>> for PrimitiveValue<Op>
Source§impl<Op: Hash + GraphOperation> Hash for PrimitiveValue<Op>
impl<Op: Hash + GraphOperation> Hash for PrimitiveValue<Op>
Source§impl<Op: PartialEq + GraphOperation> PartialEq for PrimitiveValue<Op>
impl<Op: PartialEq + GraphOperation> PartialEq for PrimitiveValue<Op>
impl<Op: Eq + GraphOperation> Eq for PrimitiveValue<Op>
impl<Op: GraphOperation> StructuralPartialEq for PrimitiveValue<Op>
Auto Trait Implementations§
impl<Op> Freeze for PrimitiveValue<Op>where
<Op as GraphOperation>::InputKey: Freeze,
impl<Op> RefUnwindSafe for PrimitiveValue<Op>where
<Op as GraphOperation>::InputKey: RefUnwindSafe,
Op: RefUnwindSafe,
impl<Op> Send for PrimitiveValue<Op>
impl<Op> Sync for PrimitiveValue<Op>
impl<Op> Unpin for PrimitiveValue<Op>where
<Op as GraphOperation>::InputKey: Unpin,
impl<Op> UnsafeUnpin for PrimitiveValue<Op>where
<Op as GraphOperation>::InputKey: UnsafeUnpin,
impl<Op> UnwindSafe for PrimitiveValue<Op>
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