Skip to main content

InvalidationReasonKind

Trait InvalidationReasonKind 

Source
pub trait InvalidationReasonKind:
    DynEq
    + DynHash
    + Send
    + Sync
    + 'static {
    // Required method
    fn fmt(
        &self,
        data: &FxIndexSet<StaticOrArc<dyn InvalidationReason>>,
        f: &mut Formatter<'_>,
    ) -> Result;
}
Expand description

Invalidation reason kind. This is used to merge multiple reasons of the same kind into a combined description.

Reason kinds are used a hash map key, so this need to implement Eq and Hash

Required Methods§

Source

fn fmt( &self, data: &FxIndexSet<StaticOrArc<dyn InvalidationReason>>, f: &mut Formatter<'_>, ) -> Result

Displays a description of multiple invalidation reasons of the same kind. It is only called with two or more reasons.

Trait Implementations§

Source§

impl Eq for dyn InvalidationReasonKind

Source§

impl Hash for dyn InvalidationReasonKind

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for dyn InvalidationReasonKind

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§