Skip to main content

Target

Trait Target 

Source
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§

Source

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.

Source

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".

Implementations on Foreign Types§

Source§

impl Target for String

Source§

impl Target for bool

Source§

impl Target for f64

Source§

impl Target for i32

Source§

impl Target for i64

Source§

impl Target for u32

Source§

impl Target for u64

Source§

impl Target for usize

Source§

impl<T: PartialEq + 'static> Target for Option<T>

Source§

impl<T: PartialEq + 'static> Target for Vec<T>

Implementors§

Source§

impl Target for ParameterValue

Defined once, by the step that defines the parameter.

Source§

impl Target for ParameterValues

Each step defining parameters adds its own.

Source§

const CHAIN: bool = true

Source§

impl Target for PlacedPart