Trait abi_stable::std_types::cow::BorrowOwned[][src]

pub trait BorrowOwned<'a>: 'a + ToOwned {
    type ROwned;
    type RBorrowed: 'a + Copy;
    fn r_borrow(this: &'a Self::ROwned) -> Self::RBorrowed;
fn r_to_owned(this: Self::RBorrowed) -> Self::ROwned;
fn deref_borrowed(this: &Self::RBorrowed) -> &Self;
fn deref_owned(this: &Self::ROwned) -> &Self;
fn from_cow_borrow(this: &'a Self) -> Self::RBorrowed;
fn from_cow_owned(this: <Self as ToOwned>::Owned) -> Self::ROwned;
fn into_cow_borrow(this: Self::RBorrowed) -> &'a Self;
fn into_cow_owned(this: Self::ROwned) -> <Self as ToOwned>::Owned; }
Expand description

The main bound of RCow<_>.

All the methods in this trait convert the parameter to the return type.

Associated Types

The owned type, stored in RCow::Owned

The borrowed type, stored in RCow::Borrowed

Required methods

Implementations on Foreign Types

Implementors