BorrowMut

Trait BorrowMut 

Source
pub trait BorrowMut<'a, T>: Borrow<'a, T>
where T: for<'b> BorrowMutHkt<'b>,
{ // Required method fn borrow_mut<'b>(&'a mut self) -> BorrowedMut<'b, T> where 'a: 'b; }
Expand description

Flexible mutable borrowing trait.

This is similar to std::borrow::BorrowMut but allows non-reference types to be used.

Required Methods§

Source

fn borrow_mut<'b>(&'a mut self) -> BorrowedMut<'b, T>
where 'a: 'b,

Create a borrowed version of this type.

Implementors§