BindFn

Struct BindFn 

pub struct BindFn<Bound, F: ?Sized>(/* private fields */);
Available on crate features func and func-bind only.

Trait Implementations§

§

impl<'a, B: ?Sized + 'a, F, O, T> Func<(T₁, T₂, …, Tₙ)> for BindFn<&'a B, F>
where F: Func<(&'a B, T), Output = O>,

This trait is implemented for argument lists up to 20 items long

§

fn call(&self, _args: (T,)) -> O

§

fn bind_ref<B>(self, arg: B) -> BindFnRef<B, Self>
where Self: Sized,

§

impl<'a, B: ?Sized + 'a, F, O, T> FuncMut<(T₁, T₂, …, Tₙ)> for BindFn<&'a B, F>
where F: FuncMut<(&'a B, T), Output = O>,

This trait is implemented for argument lists up to 20 items long

§

fn call_mut(&mut self, _args: (T,)) -> O

§

fn bind_mut<B>(self, arg: B) -> BindFnMut<B, Self>
where Self: Sized,

§

impl<'a, B: ?Sized + 'a, F, O, T> FuncMut<(T₁, T₂, …, Tₙ)> for BindFn<&'a mut B, F>
where F: for<'b> FuncMut<(&'b mut B, T), Output = O>,

This trait is implemented for argument lists up to 20 items long

§

fn call_mut(&mut self, _args: (T,)) -> O

§

fn bind_mut<B>(self, arg: B) -> BindFnMut<B, Self>
where Self: Sized,

§

impl<'a, B: 'a, F, O, T> FuncOnce<(T₁, T₂, …, Tₙ)> for BindFn<B, F>
where F: FuncOnce<(B, T), Output = O>,

This trait is implemented for argument lists up to 20 items long

§

type Output = O

§

fn call_once(self, _args: (T,)) -> O

§

fn bind<B>(self, arg: B) -> BindFn<B, Self>
where Self: Sized,

Auto Trait Implementations§

§

impl<Bound, F> Freeze for BindFn<Bound, F>
where Bound: Freeze, F: Freeze + ?Sized,

§

impl<Bound, F> RefUnwindSafe for BindFn<Bound, F>
where Bound: RefUnwindSafe, F: RefUnwindSafe + ?Sized,

§

impl<Bound, F> Send for BindFn<Bound, F>
where Bound: Send, F: Send + ?Sized,

§

impl<Bound, F> Sync for BindFn<Bound, F>
where Bound: Sync, F: Sync + ?Sized,

§

impl<Bound, F> Unpin for BindFn<Bound, F>
where Bound: Unpin, F: Unpin + ?Sized,

§

impl<Bound, F> UnwindSafe for BindFn<Bound, F>
where Bound: UnwindSafe, F: UnwindSafe + ?Sized,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> TupleJoin<()> for T

§

type Joined = T

Available on crate features tuple and tuple-ops only.
§

fn join(self, _e: ()) -> T

Available on crate features tuple and tuple-ops only.
§

impl<T> TupleSplitFront<()> for T

§

type Rest = T

Available on crate features tuple and tuple-ops only.
§

fn split_front(self) -> ((), T)

Available on crate features tuple and tuple-ops only.