pub trait Point: 'static {
type Input: Send + Sync + 'static;
type Value: Send + 'static;
const ID: PointId;
const KIND: PointKind = PointKind::Alter;
}Expand description
A hook point: one type per point, so its input and value are checked at compile time. Declared by the crate that owns the result.
Every listener of a point has the same shape: it reads the emit’s
Input and edits a Value. An
alter emit passes one value through the listeners
in order; a collect emit gives each listener a
fresh value and gathers them in a list.
Required Associated Constants§
Provided Associated Constants§
Sourceconst KIND: PointKind = PointKind::Alter
const KIND: PointKind = PointKind::Alter
What the point is for (PointKind); PointKind::Alter unless
the point says otherwise.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".