pub trait Part: Default {
type PartType: PartType;
}
Expand description
Marker types for a part of a type.
Types implementing this trait are usually created using the part
macro.
A type implementing this trait is used to identify a part of a reference target. Multiple
different reference targets can have a part identified by the same Part
(see also
HasPart
). A part has an associated PartType
, which determines what can be done with a
part.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.