pub struct AppDataRef<'a, T>where
T: 'a + ?Sized,{ /* private fields */ }
Available on crate feature
mlua
only.Expand description
A wrapper type for an immutably borrowed value from an app data container.
This type is similar to Ref
.
Trait Implementations§
Source§impl<T> Debug for AppDataRef<'_, T>
impl<T> Debug for AppDataRef<'_, T>
Source§impl<T> Deref for AppDataRef<'_, T>where
T: ?Sized,
impl<T> Deref for AppDataRef<'_, T>where
T: ?Sized,
Source§impl<T> Display for AppDataRef<'_, T>
impl<T> Display for AppDataRef<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for AppDataRef<'a, T>where
T: ?Sized,
impl<'a, T> !RefUnwindSafe for AppDataRef<'a, T>
impl<'a, T> !Send for AppDataRef<'a, T>
impl<'a, T> !Sync for AppDataRef<'a, T>
impl<'a, T> Unpin for AppDataRef<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for AppDataRef<'a, T>
Blanket Implementations§
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<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 moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§type Error = Infallible
type Error = Infallible
The error type in the returned
Result
.Source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result
.