Struct mica::ffvariants::Fallible
source · [−]pub struct Fallible<Args>(_);
Expand description
A bare fallible function.
Trait Implementations
sourceimpl<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
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, 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
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, 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
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, 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
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, 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
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, 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
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, 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
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, 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
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, 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
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 Fallible<Args>
impl<Args> BareMaybeVarargs for Fallible<Args>
Auto Trait Implementations
impl<Args> RefUnwindSafe for Fallible<Args>where
Args: RefUnwindSafe,
impl<Args> Send for Fallible<Args>where
Args: Send,
impl<Args> Sync for Fallible<Args>where
Args: Sync,
impl<Args> Unpin for Fallible<Args>where
Args: Unpin,
impl<Args> UnwindSafe for Fallible<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