pub unsafe trait PluckConst<'a, PluckedPart, Index>: PartialRef<'a> {
    type Remainder: PartialRef<'a, Target = Self::Target>;
}
Expand description

(internal) Extracts the constant part PluckedPart at position Index from the partial reference having this trait, leaving Self::Remainder.

Plucking a constant part still leaves the part in the remaining reference, but will change it from mutable to constant.

The Index type can be inferred.

Required Associated Types

The partial reference left after plucking.

Implementors

(internal) Pluck a constant nested subpart of the constant first part.

(internal) Pluck a constant nested subpart of the mutable first part.

This leaves all other subparts as mutable in the remaining reference.

(internal) Plucks the outermost constant part.

(internal) Plucks the first part, converting it from mutable to constant.

(internal) Skips the constant first part while plucking a constant part.

(internal) Skips the mutable first part while plucking a constant part.