pub struct Function<A, R> { /* private fields */ }
Expand description
A wrapper around a Lua reference to a function stored in the Lua registry.
Implementations§
Trait Implementations§
Source§impl<A, R> FromObject for Function<A, R>
impl<A, R> FromObject for Function<A, R>
impl<A: Eq, R: Eq> Eq for Function<A, R>
impl<A, R> StructuralPartialEq for Function<A, R>
Auto Trait Implementations§
impl<A, R> Freeze for Function<A, R>
impl<A, R> RefUnwindSafe for Function<A, R>where
A: RefUnwindSafe,
R: RefUnwindSafe,
impl<A, R> Send for Function<A, R>
impl<A, R> Sync for Function<A, R>
impl<A, R> Unpin for Function<A, R>
impl<A, R> UnwindSafe for Function<A, R>where
A: UnwindSafe,
R: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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
.