Skip to main content

FieldRef

Trait FieldRef 

Source
pub trait FieldRef<Deref>:
    PartialEq<Self>
    + Neg<Output = Deref>
    + Add<Deref, Output = Deref>
    + Add<Output = Deref>
    + Sub<Deref, Output = Deref>
    + Sub<Output = Deref>
    + Mul<Deref, Output = Deref>
    + Mul<Output = Deref>
    + Div<Deref, Output = Deref>
    + Div<Output = Deref>
    + Copy
    + Clone
    + Display
    + Debug
    + Sized { }
Expand description

A reference to a variable that is in a Field.

TODO: Can less HRTB be used? Can the be written down less often? Can this trait be integrated with the Field trait?

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<Deref, T> FieldRef<Deref> for T
where T: PartialEq<Self> + Neg<Output = Deref> + Add<Deref, Output = Deref> + Add<Output = Deref> + Sub<Deref, Output = Deref> + Sub<Output = Deref> + Mul<Deref, Output = Deref> + Mul<Output = Deref> + Div<Deref, Output = Deref> + Div<Output = Deref> + Copy + Clone + Display + Debug + Sized,