Trait der::referenced::OwnedToRef
source · pub trait OwnedToRef {
type Borrowed<'a>
where Self: 'a;
// Required method
fn owned_to_ref(&self) -> Self::Borrowed<'_>;
}
Expand description
A trait for borrowing data from an owned struct
Required Associated Types§
Required Methods§
sourcefn owned_to_ref(&self) -> Self::Borrowed<'_>
fn owned_to_ref(&self) -> Self::Borrowed<'_>
Creates a new object referencing back to the self for storage
Object Safety§
This trait is not object safe.