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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§