Trait neon::borrow::BorrowMut [−][src]
A trait for JS values whose internal contents can be borrowed mutably by Rust while the JS engine is locked.
Required methods
fn try_borrow_mut<'a>(
self,
lock: &'a Lock<'a>
) -> Result<RefMut<'a, Self::Target>, LoanError>
[src]
self,
lock: &'a Lock<'a>
) -> Result<RefMut<'a, Self::Target>, LoanError>
Borrow the contents of this value mutably.
If there is already an outstanding loan for this value, this method panics.
Provided methods
fn borrow_mut<'a>(self, lock: &'a Lock<'a>) -> RefMut<'a, Self::Target>
[src]
Borrow the contents of this value mutably.
If there is already an outstanding loan for this value, this method panics.
Implementations on Foreign Types
impl<'a, T: Class> BorrowMut for &'a mut T
[src]
fn try_borrow_mut<'b>(
self,
lock: &'b Lock<'b>
) -> Result<RefMut<'b, Self::Target>, LoanError>
[src]
self,
lock: &'b Lock<'b>
) -> Result<RefMut<'b, Self::Target>, LoanError>
Implementors
impl<'a> BorrowMut for &'a mut JsArrayBuffer
[src]
fn try_borrow_mut<'b>(
self,
guard: &'b Lock<'b>
) -> Result<RefMut<'b, Self::Target>, LoanError>
[src]
self,
guard: &'b Lock<'b>
) -> Result<RefMut<'b, Self::Target>, LoanError>