pub struct FuncMetadata {
pub source: Option<Symbol>,
pub differentiator_hint: Option<Symbol>,
pub payload: Option<Value>,
}Expand description
Out-of-band annotations attached to a Func value.
Fields§
§source: Option<Symbol>Symbol identifying where this function came from (for example, an elementary-function name), when known.
differentiator_hint: Option<Symbol>Optional hint naming the differentiator that should handle grad/diff
for this function.
payload: Option<Value>Arbitrary caller-supplied value carried alongside the function.
Trait Implementations§
Source§impl Clone for FuncMetadata
impl Clone for FuncMetadata
Source§fn clone(&self) -> FuncMetadata
fn clone(&self) -> FuncMetadata
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 Default for FuncMetadata
impl Default for FuncMetadata
Source§fn default() -> FuncMetadata
fn default() -> FuncMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for FuncMetadata
impl !UnwindSafe for FuncMetadata
impl Freeze for FuncMetadata
impl Send for FuncMetadata
impl Sync for FuncMetadata
impl Unpin for FuncMetadata
impl UnsafeUnpin for FuncMetadata
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