Struct owned_borrowed_trait::Borrowed
source · pub struct Borrowed<'t, T>(pub &'t T);Expand description
A wrapper that indicates the contained value is a borrowed reference
to a value of type T.
Implements the OwnedOrBorrowed trait.
Tuple Fields§
§0: &'t TTrait Implementations§
Auto Trait Implementations§
impl<'t, T> RefUnwindSafe for Borrowed<'t, T>where T: RefUnwindSafe,
impl<'t, T> Send for Borrowed<'t, T>where T: Sync,
impl<'t, T> Sync for Borrowed<'t, T>where T: Sync,
impl<'t, T> Unpin for Borrowed<'t, T>
impl<'t, T> UnwindSafe for Borrowed<'t, T>where T: RefUnwindSafe,
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