Trait partial_ref::Part

source ·
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

Implementors

A nested part is itself a part.