Trait neon::borrow::Borrow [−][src]
pub trait Borrow: Sized {
type Target: Pointer;
fn try_borrow<'a>(
self,
lock: &'a Lock<'a>
) -> Result<Ref<'a, Self::Target>, LoanError>;
fn borrow<'a>(self, lock: &'a Lock<'a>) -> Ref<'a, Self::Target> { ... }
}
Expand description
A trait for JS values whose internal contents can be borrowed immutably by Rust while the JS engine is locked.