Skip to main content

JetFieldConst

Trait JetFieldConst 

Source
pub trait JetFieldConst: JetField + Copy {
    // Required method
    fn from_f64(x: f64) -> Self;
}
Expand description

A JetField that is Copy and can be built from a real constant with every derivative channel zero. The nested-dual oracle (Dual2 over a Copy leaf) needs a dimensionless constructor; the runtime-p Vec-backed flex jets deliberately do NOT satisfy this (their constant needs a primary count), so it lives on this subtrait rather than the shared algebra base.

Required Methods§

Source

fn from_f64(x: f64) -> Self

A constant field element with value x and every derivative channel zero.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl JetFieldConst for f64

Source§

fn from_f64(x: f64) -> Self

Implementors§