citadel_sdk::prelude

Trait Then

pub trait Then<U, F>: Sized
where F: Fn(Self) -> U,
{ // Required method fn then(self, fx: F) -> U; }

Required Methods§

fn then(self, fx: F) -> U

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§

§

impl<T, U, F> Then<U, F> for T
where F: Fn(T) -> U,