Struct owned_borrowed_trait::Owned
source · pub struct Owned<T>(pub T);
Expand description
A wrapper that indicates the contained value is an owned value of type T
.
Implements the OwnedOrBorrowed
trait.
Tuple Fields§
§0: T
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Owned<T>where T: RefUnwindSafe,
impl<T> Send for Owned<T>where T: Send,
impl<T> Sync for Owned<T>where T: Sync,
impl<T> Unpin for Owned<T>where T: Unpin,
impl<T> UnwindSafe for Owned<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more