Struct mica::ffvariants::Infallible
source · [−]pub struct Infallible<Args>(_);
Expand description
A bare infallible function.
Trait Implementations
sourceimpl<Fun, Ret> ForeignFunction<Infallible<()>> for Funwhere
Fun: Fn() -> Ret + 'static,
Ret: IntoValue + 'static,
impl<Fun, Ret> ForeignFunction<Infallible<()>> for Funwhere
Fun: Fn() -> Ret + 'static,
Ret: IntoValue + 'static,
type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = _
const PARAMETER_COUNT: Self::ParameterCount = _
The number of parameters this function has, or
None
if the function accepts a variable
number of arguments. Read moresourcefn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.sourceimpl<Fun, Ret, A, B, C, D, E, F, G, H> ForeignFunction<Infallible<(A, B, C, D, E, F, G, H)>> for Funwhere
Fun: Fn(A, B, C, D, E, F, G, H) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
G: TryFromValue + 'static,
H: TryFromValue + 'static,
impl<Fun, Ret, A, B, C, D, E, F, G, H> ForeignFunction<Infallible<(A, B, C, D, E, F, G, H)>> for Funwhere
Fun: Fn(A, B, C, D, E, F, G, H) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
G: TryFromValue + 'static,
H: TryFromValue + 'static,
type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = _
const PARAMETER_COUNT: Self::ParameterCount = _
The number of parameters this function has, or
None
if the function accepts a variable
number of arguments. Read moresourcefn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.sourceimpl<Fun, Ret, A, B, C, D, E, F, G> ForeignFunction<Infallible<(A, B, C, D, E, F, G)>> for Funwhere
Fun: Fn(A, B, C, D, E, F, G) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
G: TryFromValue + 'static,
impl<Fun, Ret, A, B, C, D, E, F, G> ForeignFunction<Infallible<(A, B, C, D, E, F, G)>> for Funwhere
Fun: Fn(A, B, C, D, E, F, G) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
G: TryFromValue + 'static,
type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = _
const PARAMETER_COUNT: Self::ParameterCount = _
The number of parameters this function has, or
None
if the function accepts a variable
number of arguments. Read moresourcefn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.sourceimpl<Fun, Ret, A, B, C, D, E, F> ForeignFunction<Infallible<(A, B, C, D, E, F)>> for Funwhere
Fun: Fn(A, B, C, D, E, F) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
impl<Fun, Ret, A, B, C, D, E, F> ForeignFunction<Infallible<(A, B, C, D, E, F)>> for Funwhere
Fun: Fn(A, B, C, D, E, F) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = _
const PARAMETER_COUNT: Self::ParameterCount = _
The number of parameters this function has, or
None
if the function accepts a variable
number of arguments. Read moresourcefn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.sourceimpl<Fun, Ret, A, B, C, D, E> ForeignFunction<Infallible<(A, B, C, D, E)>> for Funwhere
Fun: Fn(A, B, C, D, E) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
impl<Fun, Ret, A, B, C, D, E> ForeignFunction<Infallible<(A, B, C, D, E)>> for Funwhere
Fun: Fn(A, B, C, D, E) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = _
const PARAMETER_COUNT: Self::ParameterCount = _
The number of parameters this function has, or
None
if the function accepts a variable
number of arguments. Read moresourcefn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.sourceimpl<Fun, Ret, A, B, C, D> ForeignFunction<Infallible<(A, B, C, D)>> for Funwhere
Fun: Fn(A, B, C, D) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
impl<Fun, Ret, A, B, C, D> ForeignFunction<Infallible<(A, B, C, D)>> for Funwhere
Fun: Fn(A, B, C, D) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = _
const PARAMETER_COUNT: Self::ParameterCount = _
The number of parameters this function has, or
None
if the function accepts a variable
number of arguments. Read moresourcefn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.sourceimpl<Fun, Ret, A, B, C> ForeignFunction<Infallible<(A, B, C)>> for Funwhere
Fun: Fn(A, B, C) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
impl<Fun, Ret, A, B, C> ForeignFunction<Infallible<(A, B, C)>> for Funwhere
Fun: Fn(A, B, C) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = _
const PARAMETER_COUNT: Self::ParameterCount = _
The number of parameters this function has, or
None
if the function accepts a variable
number of arguments. Read moresourcefn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.sourceimpl<Fun, Ret, A, B> ForeignFunction<Infallible<(A, B)>> for Funwhere
Fun: Fn(A, B) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
impl<Fun, Ret, A, B> ForeignFunction<Infallible<(A, B)>> for Funwhere
Fun: Fn(A, B) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = _
const PARAMETER_COUNT: Self::ParameterCount = _
The number of parameters this function has, or
None
if the function accepts a variable
number of arguments. Read moresourcefn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.sourceimpl<Fun, Ret, A> ForeignFunction<Infallible<(A,)>> for Funwhere
Fun: Fn(A) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
impl<Fun, Ret, A> ForeignFunction<Infallible<(A,)>> for Funwhere
Fun: Fn(A) -> Ret + 'static,
Ret: IntoValue + 'static,
A: TryFromValue + 'static,
type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = _
const PARAMETER_COUNT: Self::ParameterCount = _
The number of parameters this function has, or
None
if the function accepts a variable
number of arguments. Read moresourcefn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.impl<Args> BareExactArgs for Infallible<Args>
impl<Args> BareMaybeVarargs for Infallible<Args>
Auto Trait Implementations
impl<Args> RefUnwindSafe for Infallible<Args>where
Args: RefUnwindSafe,
impl<Args> Send for Infallible<Args>where
Args: Send,
impl<Args> Sync for Infallible<Args>where
Args: Sync,
impl<Args> Unpin for Infallible<Args>where
Args: Unpin,
impl<Args> UnwindSafe for Infallible<Args>where
Args: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more