pub struct OwnedBorrowMut<'js, T>(/* private fields */)
where
T: JsClass<'js> + 'js;
Expand description
An owned mutable borrow of a class object which keeps the borrow alive for the duration of the objects lifetime.
Implementations§
Source§impl<'js, T> OwnedBorrowMut<'js, T>where
T: JsClass<'js> + 'js,
impl<'js, T> OwnedBorrowMut<'js, T>where
T: JsClass<'js> + 'js,
Sourcepub fn from_class(class: Class<'js, T>) -> OwnedBorrowMut<'js, T>
pub fn from_class(class: Class<'js, T>) -> OwnedBorrowMut<'js, T>
Sourcepub fn try_from_class(
class: Class<'js, T>,
) -> Result<OwnedBorrowMut<'js, T>, BorrowError>
pub fn try_from_class( class: Class<'js, T>, ) -> Result<OwnedBorrowMut<'js, T>, BorrowError>
Try to borrow a class mutably owned.
Sourcepub fn into_inner(self) -> Class<'js, T>
pub fn into_inner(self) -> Class<'js, T>
Turn the owned borrow back into the class releasing the borrow.
Trait Implementations§
Source§impl<'js, T> Deref for OwnedBorrowMut<'js, T>where
T: JsClass<'js> + 'js,
impl<'js, T> Deref for OwnedBorrowMut<'js, T>where
T: JsClass<'js> + 'js,
Source§impl<'js, T> DerefMut for OwnedBorrowMut<'js, T>where
T: JsClass<'js> + 'js,
impl<'js, T> DerefMut for OwnedBorrowMut<'js, T>where
T: JsClass<'js> + 'js,
Source§impl<'js, T> Drop for OwnedBorrowMut<'js, T>where
T: JsClass<'js> + 'js,
impl<'js, T> Drop for OwnedBorrowMut<'js, T>where
T: JsClass<'js> + 'js,
Source§impl<'js, T> FromJs<'js> for OwnedBorrowMut<'js, T>where
T: JsClass<'js>,
impl<'js, T> FromJs<'js> for OwnedBorrowMut<'js, T>where
T: JsClass<'js>,
Auto Trait Implementations§
impl<'js, T> Freeze for OwnedBorrowMut<'js, T>
impl<'js, T> RefUnwindSafe for OwnedBorrowMut<'js, T>where
T: RefUnwindSafe,
impl<'js, T> !Send for OwnedBorrowMut<'js, T>
impl<'js, T> !Sync for OwnedBorrowMut<'js, T>
impl<'js, T> Unpin for OwnedBorrowMut<'js, T>where
T: Unpin,
impl<'js, T> !UnwindSafe for OwnedBorrowMut<'js, T>
Blanket Implementations§
Source§impl<'js, T> AsProperty<'js, T> for Twhere
T: IntoJs<'js>,
impl<'js, T> AsProperty<'js, T> for Twhere
T: IntoJs<'js>,
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
Source§impl<'js, T> FromParam<'js> for Twhere
T: FromJs<'js>,
impl<'js, T> FromParam<'js> for Twhere
T: FromJs<'js>,
Source§fn param_requirement() -> ParamRequirement
fn param_requirement() -> ParamRequirement
The parameters requirements this value requires.
Source§fn from_param<'a>(params: &mut ParamsAccessor<'a, 'js>) -> Result<T, Error>
fn from_param<'a>(params: &mut ParamsAccessor<'a, 'js>) -> Result<T, Error>
Convert from a parameter value.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more