pub trait Target:
PartialEq
+ Sized
+ 'static {
const CHAIN: bool = false;
const KEEPER: Option<Keeper<Self>> = None;
}Expand description
A type a part holds targets of. A plain value: compared by PartialEq,
to tell a node made again into an equal value — whose readers are then
reused — from one that changed.
Provided Associated Constants§
Sourceconst CHAIN: bool = false
const CHAIN: bool = false
Whether several steps may produce a target of this type, each from
what the steps before left (see crate::reader::Reader::previous):
the model, the datums, the parameters’ values, the listings — what
a program accumulates. A target that is not a chain — a sketch, a
placed part — has one producer, and a second is an error naming
both.
Sourceconst KEEPER: Option<Keeper<Self>> = None
const KEEPER: Option<Keeper<Self>> = None
How its values are written to be kept between processes (see
crate::kept): none for a target made again in every process —
one that is cheap to make, or holds what cannot be written.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".