Skip to main content

OpClosureOnOpClosure

Struct OpClosureOnOpClosure 

Source
pub struct OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where OpT: Fn(T, T) -> T, IdT: Fn() -> T, OpU: Fn(U, U) -> U, IdU: Fn() -> U, Act: Fn(T, U) -> T,
{ /* private fields */ }

Implementations§

Source§

impl<T, OpT, IdT, U, OpU, IdU, Act> OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where T: Eq + Sized, OpT: Fn(T, T) -> T, IdT: Fn() -> T, U: Eq + Sized, OpU: Fn(U, U) -> U, IdU: Fn() -> U, Act: Fn(T, U) -> T,

Source

pub fn new( operand: OpClosure<T, OpT, IdT>, operator: OpClosure<U, OpU, IdU>, act: Act, ) -> Self

Trait Implementations§

Source§

impl<T: Clone, OpT, IdT, U: Clone, OpU, IdU, Act> Clone for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where OpT: Fn(T, T) -> T + Clone, IdT: Fn() -> T + Clone, OpU: Fn(U, U) -> U + Clone, IdU: Fn() -> U + Clone, Act: Fn(T, U) -> T + Clone,

Source§

fn clone(&self) -> OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug, OpT, IdT, U: Debug, OpU, IdU, Act> Debug for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where OpT: Fn(T, T) -> T + Debug, IdT: Fn() -> T + Debug, OpU: Fn(U, U) -> U + Debug, IdU: Fn() -> U + Debug, Act: Fn(T, U) -> T + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Default, OpT, IdT, U: Default, OpU, IdU, Act> Default for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where OpT: Fn(T, T) -> T + Default, IdT: Fn() -> T + Default, OpU: Fn(U, U) -> U + Default, IdU: Fn() -> U + Default, Act: Fn(T, U) -> T + Default,

Source§

fn default() -> OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>

Returns the “default value” for a type. Read more
Source§

impl<T, OpT, IdT, U, OpU, IdU, Act> MonoidAction for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where T: Eq + Sized, OpT: Fn(T, T) -> T, IdT: Fn() -> T, U: Eq + Sized, OpU: Fn(U, U) -> U, IdU: Fn() -> U, Act: Fn(T, U) -> T,

Source§

type Operand = OpClosure<T, OpT, IdT>

作用される型。
Source§

type Operator = OpClosure<U, OpU, IdU>

作用を行う型。
Source§

fn operand(&self) -> &Self::Operand

Source§

fn operator(&self) -> &Self::Operator

Source§

fn act(&self, x: T, op: U) -> T

作用を行う。
Source§

impl<T: Copy, OpT, IdT, U: Copy, OpU, IdU, Act> Copy for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where OpT: Fn(T, T) -> T + Copy, IdT: Fn() -> T + Copy, OpU: Fn(U, U) -> U + Copy, IdU: Fn() -> U + Copy, Act: Fn(T, U) -> T + Copy,

Auto Trait Implementations§

§

impl<T, OpT, IdT, U, OpU, IdU, Act> Freeze for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where Act: Freeze, OpU: Freeze, IdU: Freeze, OpT: Freeze, IdT: Freeze,

§

impl<T, OpT, IdT, U, OpU, IdU, Act> RefUnwindSafe for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>

§

impl<T, OpT, IdT, U, OpU, IdU, Act> Send for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where Act: Send, OpU: Send, IdU: Send, OpT: Send, IdT: Send,

§

impl<T, OpT, IdT, U, OpU, IdU, Act> Sync for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where Act: Sync, OpU: Sync, IdU: Sync, OpT: Sync, IdT: Sync,

§

impl<T, OpT, IdT, U, OpU, IdU, Act> Unpin for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where Act: Unpin, OpU: Unpin, IdU: Unpin, OpT: Unpin, IdT: Unpin,

§

impl<T, OpT, IdT, U, OpU, IdU, Act> UnsafeUnpin for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where Act: UnsafeUnpin, OpU: UnsafeUnpin, IdU: UnsafeUnpin, OpT: UnsafeUnpin, IdT: UnsafeUnpin,

§

impl<T, OpT, IdT, U, OpU, IdU, Act> UnwindSafe for OpClosureOnOpClosure<T, OpT, IdT, U, OpU, IdU, Act>
where Act: UnwindSafe, OpU: UnwindSafe, IdU: UnwindSafe, OpT: UnwindSafe, IdT: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V