Trait core::borrow::BorrowMut 1.0.0[−][src]
pub trait BorrowMut<Borrowed: ?Sized>: Borrow<Borrowed> { fn borrow_mut(&mut self) -> &mut Borrowed; }
A trait for mutably borrowing data.
As a companion to Borrow<T>
this trait allows a type to borrow as
an underlying type by providing a mutable reference. See Borrow<T>
for more information on borrowing as another type.
Required Methods
fn borrow_mut(&mut self) -> &mut Borrowed
Implementors
impl<T: ?Sized> BorrowMut<T> for T
impl<'a, T: ?Sized> BorrowMut<T> for &'a mut T
impl<T> BorrowMut<[T]> for [T; 0]
impl<T> BorrowMut<[T]> for [T; 1]
impl<T> BorrowMut<[T]> for [T; 2]
impl<T> BorrowMut<[T]> for [T; 3]
impl<T> BorrowMut<[T]> for [T; 4]
impl<T> BorrowMut<[T]> for [T; 5]
impl<T> BorrowMut<[T]> for [T; 6]
impl<T> BorrowMut<[T]> for [T; 7]
impl<T> BorrowMut<[T]> for [T; 8]
impl<T> BorrowMut<[T]> for [T; 9]
impl<T> BorrowMut<[T]> for [T; 10]
impl<T> BorrowMut<[T]> for [T; 11]
impl<T> BorrowMut<[T]> for [T; 12]
impl<T> BorrowMut<[T]> for [T; 13]
impl<T> BorrowMut<[T]> for [T; 14]
impl<T> BorrowMut<[T]> for [T; 15]
impl<T> BorrowMut<[T]> for [T; 16]
impl<T> BorrowMut<[T]> for [T; 17]
impl<T> BorrowMut<[T]> for [T; 18]
impl<T> BorrowMut<[T]> for [T; 19]
impl<T> BorrowMut<[T]> for [T; 20]
impl<T> BorrowMut<[T]> for [T; 21]
impl<T> BorrowMut<[T]> for [T; 22]
impl<T> BorrowMut<[T]> for [T; 23]
impl<T> BorrowMut<[T]> for [T; 24]
impl<T> BorrowMut<[T]> for [T; 25]
impl<T> BorrowMut<[T]> for [T; 26]
impl<T> BorrowMut<[T]> for [T; 27]
impl<T> BorrowMut<[T]> for [T; 28]
impl<T> BorrowMut<[T]> for [T; 29]
impl<T> BorrowMut<[T]> for [T; 30]
impl<T> BorrowMut<[T]> for [T; 31]
impl<T> BorrowMut<[T]> for [T; 32]