[−][src]Trait abi_stable::std_types::cow::BorrowOwned
The main bound of RCow<_>
.
All the methods in this trait convert the parameter to the return type.
Associated Types
Loading content...Required methods
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::Owned) -> Self::ROwned
fn into_cow_borrow(this: Self::RBorrowed) -> &'a Self
fn into_cow_owned(this: Self::ROwned) -> Self::Owned
Implementations on Foreign Types
impl<'a> BorrowOwned<'a> for str
[src]
type ROwned = RString
type RBorrowed = RStr<'a>
fn r_borrow(this: &'a Self::ROwned) -> Self::RBorrowed
[src]
fn r_to_owned(this: Self::RBorrowed) -> Self::ROwned
[src]
fn deref_borrowed(this: &Self::RBorrowed) -> &Self
[src]
fn deref_owned(this: &Self::ROwned) -> &Self
[src]
fn from_cow_borrow(this: &'a Self) -> Self::RBorrowed
[src]
fn from_cow_owned(this: Self::Owned) -> Self::ROwned
[src]
fn into_cow_borrow(this: Self::RBorrowed) -> &'a Self
[src]
fn into_cow_owned(this: Self::ROwned) -> Self::Owned
[src]
impl<'a, T: 'a> BorrowOwned<'a> for [T] where
T: Clone,
[src]
T: Clone,
type ROwned = RVec<T>
type RBorrowed = RSlice<'a, T>
fn r_borrow(this: &'a Self::ROwned) -> Self::RBorrowed
[src]
fn r_to_owned(this: Self::RBorrowed) -> Self::ROwned
[src]
fn deref_borrowed(this: &Self::RBorrowed) -> &Self
[src]
fn deref_owned(this: &Self::ROwned) -> &Self
[src]
fn from_cow_borrow(this: &'a Self) -> Self::RBorrowed
[src]
fn from_cow_owned(this: Self::Owned) -> Self::ROwned
[src]
fn into_cow_borrow(this: Self::RBorrowed) -> &'a Self
[src]
fn into_cow_owned(this: Self::ROwned) -> Self::Owned
[src]
Implementors
impl<'a, T: 'a> BorrowOwned<'a> for T where
T: Clone,
[src]
T: Clone,