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

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.

Implementors§

Source§

impl<Outer, OuterFieldType, Inner> Part for Nested<Outer, Inner>
where Outer: Part<PartType = Field<OuterFieldType>>, Inner: Part, OuterFieldType: ?Sized + HasPart<Inner> + PartialRefTarget<RawTarget = OuterFieldType>,

A nested part is itself a part.

Source§

type PartType = <Inner as Part>::PartType