AutoCompose

Trait AutoCompose 

Source
pub trait AutoCompose<A>
where Self: Sized,
{ type Output; // Required method fn compose(self, _other: A) -> Self::Output; // Provided methods fn o(self, other: A) -> Self::Output { ... } fn of(self, other: A) -> Self::Output { ... } fn after(self, other: A) -> Self::Output { ... } fn on(self, other: A) -> Self::Output { ... } }

Required Associated Types§

Required Methods§

Source

fn compose(self, _other: A) -> Self::Output

Provided Methods§

Source

fn o(self, other: A) -> Self::Output

alias for compose

Source

fn of(self, other: A) -> Self::Output

alias for compose

Source

fn after(self, other: A) -> Self::Output

alias for compose

Source

fn on(self, other: A) -> Self::Output

alias for compose

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<StaticArgs, Outer, Inner> AutoCompose<AutoDiff<StaticArgs, Inner>> for AutoDiff<StaticArgs, Outer>
where Outer: Diffable<StaticArgs> + FuncCompose<StaticArgs, Inner>, Inner: Diffable<StaticArgs>,

Impl of Compose for AutoDiff

Source§

type Output = AutoDiff<StaticArgs, <Outer as FuncCompose<StaticArgs, Inner>>::Output>