Struct partial_ref::Const[][src]

#[repr(transparent)]
pub struct Const<Part, Reference: HasTarget> { /* fields omitted */ }
Expand description

A constant (immutable) part of a partial reference.

Trait Implementations

A reference containing just constant parts is safe to clone.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

(internal) To have a reference with a constant first part as subset, pluck that part and make sure the remaining references are in a subset relation.

The referenced type. Read more

Extending a valid reference by a constant part is still a valid reference when the reference target has such a part.

Create a partial reference from a raw pointer. Read more

Access to the underlying raw pointer. Read more

Partially re-borrows a partial reference. Read more

Access a part of the referenced value. Read more

Mutable access to a part of the referenced value. Read more

Partially re-borrows a partial reference, splitting off the remaining parts. Read more

Access a part of the referenced value, splitting off the remaining parts. Read more

Mutable access to a part of the referenced value, splitting off the remaining parts. Read more

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

The partial reference left after plucking.

(internal) Plucks the outermost constant part.

The partial reference left after plucking.

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

The partial reference left after plucking.

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

The partial reference left after plucking.

A reference containing just constant parts is safe to clone.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Given a constant pointer to a target, produce a constant pointer to a part of it. Read more

Given a mutable pointer to a target, produce a mutable pointer to a part of it. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.