pub struct UserDataRefMut<T: 'static> { /* private fields */ }
Expand description
A wrapper type for a userdata value that provides read and write access.
It implements FromLua
and can be used to receive a typed userdata from Lua.
Trait Implementations§
Source§impl<T: Debug> Debug for UserDataRefMut<T>
impl<T: Debug> Debug for UserDataRefMut<T>
Source§impl<T> Deref for UserDataRefMut<T>
impl<T> Deref for UserDataRefMut<T>
Source§impl<T> DerefMut for UserDataRefMut<T>
impl<T> DerefMut for UserDataRefMut<T>
Source§impl<T: Display> Display for UserDataRefMut<T>
impl<T: Display> Display for UserDataRefMut<T>
Auto Trait Implementations§
impl<T> Freeze for UserDataRefMut<T>
impl<T> !RefUnwindSafe for UserDataRefMut<T>
impl<T> Send for UserDataRefMut<T>where
T: Send,
impl<T> Sync for UserDataRefMut<T>where
T: Send,
impl<T> Unpin for UserDataRefMut<T>
impl<T> !UnwindSafe for UserDataRefMut<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> FromLuaMulti for Twhere
T: FromLua,
impl<T> FromLuaMulti for Twhere
T: FromLua,
Source§fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue, i: usize, to: Option<&str>, lua: &Lua, ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &RawLua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &RawLua, ) -> Result<T, Error>
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