diff -r 3b82a9d16307 -r 6a4b44b2cdf2 src/mapping.rs --- a/src/mapping.rs Wed Oct 04 08:59:29 2023 -0500 +++ b/src/mapping.rs Wed Oct 04 09:03:47 2023 -0500 @@ -42,13 +42,22 @@ type Codomain = Codomain; } - +/// Automatically implemented shorthand for referring to [`Mapping`]s from [`Loc`] to `F`. pub trait RealMapping : Mapping, Codomain = F> {} impl RealMapping for T where T : Mapping, Codomain = F> {} +/// Automatically implemented shorthand for referring to differentiable [`Mapping`]s from +/// [`Loc`] to `F`. +pub trait DifferentiableRealMapping +: DifferentiableMapping, Codomain = F, Differential=Loc> {} + +impl DifferentiableRealMapping for T +where T : DifferentiableMapping, Codomain = F, Differential=Loc> {} + + /// A helper trait alias for referring to [`Mapping`]s from [`Loc`] to [`Loc`]. pub trait RealVectorField : Mapping, Codomain = Loc> {}