Struct nvim_oxi_types::Function
source · 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>
source§impl<A: PartialEq, R: PartialEq> PartialEq for Function<A, R>
impl<A: PartialEq, R: PartialEq> PartialEq 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> IntoResult<T> for T
impl<T> IntoResult<T> for T
§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.