Trait partial_ref::IntoPartialRef
source · pub trait IntoPartialRef<'a> {
type Ref: PartialRef<'a>;
fn into_partial_ref(self) -> Self::Ref;
}
Expand description
Construction of partial references.
See also IntoPartialRefMut
.
This trait gets an automatic implementation for references (mutable or immutable) to any type
that has a derive statement for PartialRefTarget
. Usually there is no need to implement this
trait manually.
Required Associated Types
type Ref: PartialRef<'a>
Required Methods
sourcefn into_partial_ref(self) -> Self::Ref
fn into_partial_ref(self) -> Self::Ref
Convert a mutable or immutable reference into a partial reference.