# HG changeset patch # User Tuomo Valkonen # Date 1670308377 -7200 # Node ID e03ce15643da4d39985b366cf6516d0a96e3507f # Parent f5b9f4bf25a728bb8745db97de34c1baeb9bee53 Fix broken links in doc comments after Mapping -> Apply change. diff -r f5b9f4bf25a7 -r e03ce15643da src/bisection_tree/support.rs --- a/src/bisection_tree/support.rs Tue Dec 06 08:29:13 2022 +0200 +++ b/src/bisection_tree/support.rs Tue Dec 06 08:32:57 2022 +0200 @@ -1,6 +1,6 @@ /*! -Traits for representing the support of a [`Mapping`], and analysing the mapping on a [`Cube`]. +Traits for representing the support of a [`Apply`], and analysing the mapping on a [`Cube`]. */ use serde::Serialize; use std::ops::{MulAssign,DivAssign,Neg}; @@ -27,9 +27,9 @@ } -/// A trait for working with the supports of [`Mapping`]s. +/// A trait for working with the supports of [`Apply`]s. /// -/// Mapping is not a super-trait to allow more general use. +/// Apply is not a super-trait to allow more general use. pub trait Support : Sized + Sync + Send + 'static { /// Return a cube containing the support of the function represented by `self`. /// @@ -70,7 +70,7 @@ } } -/// Trait for globally analysing a property `A` of a [`Mapping`]. +/// Trait for globally analysing a property `A` of a [`Apply`]. /// /// Typically `A` is an [`Aggregator`][super::aggregator::Aggregator] such as /// [`Bounds`][super::aggregator::Bounds]. @@ -91,7 +91,7 @@ // } // } -/// Trait for locally analysing a property `A` of a [`Mapping`] (implementing [`Support`]) +/// Trait for locally analysing a property `A` of a [`Apply`] (implementing [`Support`]) /// within a [`Cube`]. /// /// Typically `A` is an [`Aggregator`][super::aggregator::Aggregator] such as @@ -105,10 +105,10 @@ fn local_analysis(&self, cube : &Cube) -> A; } -/// Trait for determining the upper and lower bounds of an float-valued [`Mapping`]. +/// Trait for determining the upper and lower bounds of an float-valued [`Apply`]. /// /// This is a blanket-implemented alias for [`GlobalAnalysis`]`>` -/// [`Mapping`] is not a supertrait to allow flexibility in the implementation of either +/// [`Apply`] is not a supertrait to allow flexibility in the implementation of either /// reference or non-reference arguments. pub trait Bounded : GlobalAnalysis> { /// Return lower and upper bounds for the values of of `self`. @@ -120,7 +120,7 @@ impl>> Bounded for T { } -/// Shift of [`Support`] and [`Mapping`]; output of [`Support::shift`]. +/// Shift of [`Support`] and [`Apply`]; output of [`Support::shift`]. #[derive(Copy,Clone,Debug,Serialize)] // Serialize! but not implemented by Loc. pub struct Shift { shift : Loc, @@ -200,13 +200,13 @@ impl_shift_norm!(L1 L2 Linfinity); -/// Weighting of a [`Support`] and [`Mapping`] by scalar multiplication; +/// Weighting of a [`Support`] and [`Apply`] by scalar multiplication; /// output of [`Support::weigh`]. #[derive(Copy,Clone,Debug,Serialize)] pub struct Weighted { /// The weight pub weight : C, - /// The base [`Support`] or [`Mapping`] being weighted. + /// The base [`Support`] or [`Apply`] being weighted. pub base_fn : T, } @@ -331,12 +331,12 @@ impl_weighted_norm!(L1 L2 Linfinity); -/// Normalisation of [`Support`] and [`Mapping`] to L¹ norm 1. +/// Normalisation of [`Support`] and [`Apply`] to L¹ norm 1. /// /// Currently only scalar-valued functions are supported. #[derive(Copy, Clone, Debug, Serialize, PartialEq)] pub struct Normalised( - /// The base [`Support`] or [`Mapping`]. + /// The base [`Support`] or [`Apply`]. pub T ); @@ -449,7 +449,7 @@ : MulAssign + DivAssign + Neg + Clone + Sync + Send + 'static { /// The identification type type Id : 'static + Copy; - /// The type of the [`Support`] (often also a [`Mapping`]). + /// The type of the [`Support`] (often also a [`Apply`]). type SupportType : 'static + Support; /// An iterator over all the [`Support`]s of the generator. type AllDataIter<'a> : Iterator where Self : 'a;