pub trait OwnedOrBorrowed<T>: Sealed {
type Inner: Borrow<T>;
const OWNED: bool;
// Required methods
fn into_inner(self) -> Self::Inner;
fn as_inner(&self) -> &Self::Inner;
}
Expand description
Required Associated Types§
Required Associated Constants§
Required Methods§
sourcefn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Consumes this wrapper type and returns the contained value or borrowed reference.