Struct mica::ffvariants::Fallible
source · pub struct Fallible<Args>(_);
Expand description
A bare fallible function.
Trait Implementations§
source§impl<Fun, Ret, Err> ForeignFunction<Fallible<()>> for Funwhere
Fun: Fn() -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + 'static,
impl<Fun, Ret, Err> ForeignFunction<Fallible<()>> for Funwhere
Fun: Fn() -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + 'static,
§type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
source§const 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 moresource§fn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.source§impl<Fun, Ret, Err, A, B, C, D, E, F, G, H> ForeignFunction<Fallible<(A, B, C, D, E, F, G, H)>> for Funwhere
Fun: Fn(A, B, C, D, E, F, G, H) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + '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, Err, A, B, C, D, E, F, G, H> ForeignFunction<Fallible<(A, B, C, D, E, F, G, H)>> for Funwhere
Fun: Fn(A, B, C, D, E, F, G, H) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + '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
source§const 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 moresource§fn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.source§impl<Fun, Ret, Err, A, B, C, D, E, F, G> ForeignFunction<Fallible<(A, B, C, D, E, F, G)>> for Funwhere
Fun: Fn(A, B, C, D, E, F, G) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + '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, Err, A, B, C, D, E, F, G> ForeignFunction<Fallible<(A, B, C, D, E, F, G)>> for Funwhere
Fun: Fn(A, B, C, D, E, F, G) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + '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
source§const 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 moresource§fn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.source§impl<Fun, Ret, Err, A, B, C, D, E, F> ForeignFunction<Fallible<(A, B, C, D, E, F)>> for Funwhere
Fun: Fn(A, B, C, D, E, F) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
impl<Fun, Ret, Err, A, B, C, D, E, F> ForeignFunction<Fallible<(A, B, C, D, E, F)>> for Funwhere
Fun: Fn(A, B, C, D, E, F) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + '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
source§const 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 moresource§fn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.source§impl<Fun, Ret, Err, A, B, C, D, E> ForeignFunction<Fallible<(A, B, C, D, E)>> for Funwhere
Fun: Fn(A, B, C, D, E) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
impl<Fun, Ret, Err, A, B, C, D, E> ForeignFunction<Fallible<(A, B, C, D, E)>> for Funwhere
Fun: Fn(A, B, C, D, E) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + '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
source§const 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 moresource§fn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.source§impl<Fun, Ret, Err, A, B, C, D> ForeignFunction<Fallible<(A, B, C, D)>> for Funwhere
Fun: Fn(A, B, C, D) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
impl<Fun, Ret, Err, A, B, C, D> ForeignFunction<Fallible<(A, B, C, D)>> for Funwhere
Fun: Fn(A, B, C, D) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + '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
source§const 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 moresource§fn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.source§impl<Fun, Ret, Err, A, B, C> ForeignFunction<Fallible<(A, B, C)>> for Funwhere
Fun: Fn(A, B, C) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
impl<Fun, Ret, Err, A, B, C> ForeignFunction<Fallible<(A, B, C)>> for Funwhere
Fun: Fn(A, B, C) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + '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
source§const 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 moresource§fn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.source§impl<Fun, Ret, Err, A, B> ForeignFunction<Fallible<(A, B)>> for Funwhere
Fun: Fn(A, B) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
impl<Fun, Ret, Err, A, B> ForeignFunction<Fallible<(A, B)>> for Funwhere
Fun: Fn(A, B) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + '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
source§const 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 moresource§fn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.source§impl<Fun, Ret, Err, A> ForeignFunction<Fallible<(A,)>> for Funwhere
Fun: Fn(A) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + 'static,
A: TryFromValue + 'static,
impl<Fun, Ret, Err, A> ForeignFunction<Fallible<(A,)>> for Funwhere
Fun: Fn(A) -> Result<Ret, Err> + 'static,
Ret: IntoValue + 'static,
Err: Error + 'static,
A: TryFromValue + 'static,
§type ParameterCount = FunctionParameterCount
type ParameterCount = FunctionParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
source§const 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 moresource§fn into_raw_foreign_function(self) -> RawForeignFunction
fn into_raw_foreign_function(self) -> RawForeignFunction
Converts the function to a
RawForeignFunction
.