Skip to main content

TwoContainerObject

Trait TwoContainerObject 

Source
pub trait TwoContainerObject<B>: Object
where B: Object,
{ // Provided methods fn and(self, other: B) -> TwoContainer<Self, B> where Self: Sized { ... } fn copy_and(self, process: impl FnOnce(Self) -> B) -> TwoContainer<Self, B> where Self: Sized + Copy { ... } fn clone_and(self, process: impl FnOnce(Self) -> B) -> TwoContainer<Self, B> where Self: Sized + Clone { ... } }

Provided Methods§

Source

fn and(self, other: B) -> TwoContainer<Self, B>
where Self: Sized,

Source

fn copy_and(self, process: impl FnOnce(Self) -> B) -> TwoContainer<Self, B>
where Self: Sized + Copy,

Source

fn clone_and(self, process: impl FnOnce(Self) -> B) -> TwoContainer<Self, B>
where Self: Sized + Clone,

Implementors§

Source§

impl<A, B> TwoContainerObject<B> for A
where A: Object, B: Object,