Struct mica::ffvariants::InfallibleSelf
source · [−]pub struct InfallibleSelf<S, Args>(_);
Expand description
An infallible function with typed self
.
Trait Implementations
sourceimpl<Fun, Ret, Recv, A, B, C, D, E, F, G, H> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F, G, H)>> for Funwhere
Fun: Fn(&Recv, A, B, C, D, E, F, G, H) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + '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, Recv, A, B, C, D, E, F, G, H> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F, G, H)>> for Funwhere
Fun: Fn(&Recv, A, B, C, D, E, F, G, H) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + '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 = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x09): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F, G, H)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x09): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F, G, H)>>>::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, Recv, A, B, C, D, E, F, G> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F, G)>> for Funwhere
Fun: Fn(&Recv, A, B, C, D, E, F, G) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + '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, Recv, A, B, C, D, E, F, G> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F, G)>> for Funwhere
Fun: Fn(&Recv, A, B, C, D, E, F, G) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
G: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x08): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F, G)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x08): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F, G)>>>::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, Recv, A, B, C, D, E, F> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F)>> for Funwhere
Fun: Fn(&Recv, A, B, C, D, E, F) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
impl<Fun, Ret, Recv, A, B, C, D, E, F> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F)>> for Funwhere
Fun: Fn(&Recv, A, B, C, D, E, F) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x07): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x07): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C, D, E, F)>>>::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, Recv, A, B, C, D, E> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C, D, E)>> for Funwhere
Fun: Fn(&Recv, A, B, C, D, E) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
impl<Fun, Ret, Recv, A, B, C, D, E> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C, D, E)>> for Funwhere
Fun: Fn(&Recv, A, B, C, D, E) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x06): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C, D, E)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x06): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C, D, E)>>>::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, Recv, A, B, C, D> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C, D)>> for Funwhere
Fun: Fn(&Recv, A, B, C, D) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
impl<Fun, Ret, Recv, A, B, C, D> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C, D)>> for Funwhere
Fun: Fn(&Recv, A, B, C, D) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x05): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C, D)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x05): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C, D)>>>::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, Recv, A, B, C> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C)>> for Funwhere
Fun: Fn(&Recv, A, B, C) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
impl<Fun, Ret, Recv, A, B, C> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B, C)>> for Funwhere
Fun: Fn(&Recv, A, B, C) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x04): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x04): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B, C)>>>::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, Recv, A, B> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B)>> for Funwhere
Fun: Fn(&Recv, A, B) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
impl<Fun, Ret, Recv, A, B> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A, B)>> for Funwhere
Fun: Fn(&Recv, A, B) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x03): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x03): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A, B)>>>::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, Recv, A> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A)>> for Funwhere
Fun: Fn(&Recv, A) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
impl<Fun, Ret, Recv, A> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv, A)>> for Funwhere
Fun: Fn(&Recv, A) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
A: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x02): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x02): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv, A)>>>::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, Recv> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv,)>> for Funwhere
Fun: Fn(&Recv) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
impl<Fun, Ret, Recv> ForeignFunction<InfallibleSelf<ImmutableSelf<Recv>, (&Recv,)>> for Funwhere
Fun: Fn(&Recv) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: SelfFromRawValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x01): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv,)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x01): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::ImmutableSelf<Recv>, (&Recv,)>>>::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, Recv, A, B, C, D, E, F, G, H> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F, G, H)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C, D, E, F, G, H) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + '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, Recv, A, B, C, D, E, F, G, H> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F, G, H)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C, D, E, F, G, H) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + '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 = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x09): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F, G, H)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x09): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F, G, H)>>>::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, Recv, A, B, C, D, E, F, G> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F, G)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C, D, E, F, G) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + '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, Recv, A, B, C, D, E, F, G> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F, G)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C, D, E, F, G) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
G: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x08): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F, G)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x08): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F, G)>>>::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, Recv, A, B, C, D, E, F> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C, D, E, F) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
impl<Fun, Ret, Recv, A, B, C, D, E, F> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C, D, E, F) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
F: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x07): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x07): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C, D, E, F)>>>::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, Recv, A, B, C, D, E> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C, D, E)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C, D, E) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
impl<Fun, Ret, Recv, A, B, C, D, E> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C, D, E)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C, D, E) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
E: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x06): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C, D, E)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x06): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C, D, E)>>>::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, Recv, A, B, C, D> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C, D)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C, D) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
impl<Fun, Ret, Recv, A, B, C, D> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C, D)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C, D) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
D: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x05): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C, D)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x05): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C, D)>>>::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, Recv, A, B, C> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
impl<Fun, Ret, Recv, A, B, C> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B, C)>> for Funwhere
Fun: Fn(&mut Recv, A, B, C) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
C: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x04): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x04): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B, C)>>>::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, Recv, A, B> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B)>> for Funwhere
Fun: Fn(&mut Recv, A, B) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
impl<Fun, Ret, Recv, A, B> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A, B)>> for Funwhere
Fun: Fn(&mut Recv, A, B) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
B: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x03): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x03): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A, B)>>>::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, Recv, A> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A)>> for Funwhere
Fun: Fn(&mut Recv, A) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
impl<Fun, Ret, Recv, A> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv, A)>> for Funwhere
Fun: Fn(&mut Recv, A) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
A: TryFromValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x02): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x02): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv, A)>>>::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, Recv> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv,)>> for Funwhere
Fun: Fn(&mut Recv) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
impl<Fun, Ret, Recv> ForeignFunction<InfallibleSelf<MutableSelf<Recv>, (&mut Recv,)>> for Funwhere
Fun: Fn(&mut Recv) -> Ret + 'static,
Ret: IntoValue + 'static,
Recv: MutSelfFromRawValue + 'static,
type ParameterCount = MethodParameterCount
type ParameterCount = MethodParameterCount
The type used for parameter counts in this kind of foreign functions. Read more
sourceconst PARAMETER_COUNT: Self::ParameterCount = {transmute(0x01): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv,)>>>::ParameterCount}
const PARAMETER_COUNT: Self::ParameterCount = {transmute(0x01): <Fun as hl::function::ForeignFunction<hl::function::ffvariants::InfallibleSelf<hl::function::ffvariants::MutableSelf<Recv>, (&mut Recv,)>>>::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<S> BuiltinTraitFunction<InfallibleSelf<ImmutableSelf<S>, (&S,)>> for HasNext
impl<S> BuiltinTraitFunction<InfallibleSelf<ImmutableSelf<S>, (&S,)>> for Next
impl<S> BuiltinTraitFunction<InfallibleSelf<MutableSelf<S>, (&mut S,)>> for HasNext
impl<S> BuiltinTraitFunction<InfallibleSelf<MutableSelf<S>, (&mut S,)>> for Next
impl<S, Args> Method<<S as Receiver>::Receiver> for InfallibleSelf<S, Args>where
S: Receiver,
Auto Trait Implementations
impl<S, Args> RefUnwindSafe for InfallibleSelf<S, Args>where
Args: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, Args> Send for InfallibleSelf<S, Args>where
Args: Send,
S: Send,
impl<S, Args> Sync for InfallibleSelf<S, Args>where
Args: Sync,
S: Sync,
impl<S, Args> Unpin for InfallibleSelf<S, Args>where
Args: Unpin,
S: Unpin,
impl<S, Args> UnwindSafe for InfallibleSelf<S, Args>where
Args: UnwindSafe,
S: 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