pub struct ConventionNote {
pub slug: &'static str,
pub aspect: &'static str,
pub convention: &'static str,
pub differs_from: &'static str,
pub source: &'static str,
pub guidance: &'static str,
}Expand description
One convention that a caller could plausibly get wrong.
Fields§
§slug: &'static strIndicator slug this note applies to (matches metadata_registry).
aspect: &'static strWhat aspect of the calculation is ambiguous, e.g. “smoothing”, “scaling”.
convention: &'static strThe convention this implementation actually follows.
differs_from: &'static strWidely used conventions this implementation does not follow.
source: &'static strRecorded provenance for the implemented convention, or an explicit statement that no source has been established.
guidance: &'static strWhat a caller should do about it.
Trait Implementations§
Source§impl Clone for ConventionNote
impl Clone for ConventionNote
impl Copy for ConventionNote
Source§impl Debug for ConventionNote
impl Debug for ConventionNote
impl Eq for ConventionNote
Source§impl PartialEq for ConventionNote
impl PartialEq for ConventionNote
Source§impl Serialize for ConventionNote
impl Serialize for ConventionNote
impl StructuralPartialEq for ConventionNote
Auto Trait Implementations§
impl Forget for ConventionNote
impl Freeze for ConventionNote
impl Move for ConventionNote
impl RefUnwindSafe for ConventionNote
impl Send for ConventionNote
impl Sync for ConventionNote
impl Unpin for ConventionNote
impl UnsafeUnpin for ConventionNote
impl UnwindSafe for ConventionNote
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.