Struct lattices::map_union::KeyedBimorphism

source ·
pub struct KeyedBimorphism<MapOut, Bimorphism> { /* private fields */ }
Expand description

Composable bimorphism, wraps an existing morphism by partitioning it per key.

For example, KeyedBimorphism<..., CartesianProduct<...>> is a join.

Implementations§

source§

impl<MapOut, Bimorphism> KeyedBimorphism<MapOut, Bimorphism>

source

pub fn new(bimorphism: Bimorphism) -> Self

Create a KeyedBimorphism using bimorphism for handling values.

Trait Implementations§

source§

impl<MapA, MapB, MapOut, ValFunc> LatticeBimorphism<MapUnion<MapA>, MapUnion<MapB>> for KeyedBimorphism<MapOut, ValFunc>
where ValFunc: LatticeBimorphism<MapA::Item, MapB::Item>, MapA: MapIter + SimpleKeyedRef + SimpleCollectionRef, MapB: for<'a> GetKeyValue<&'a MapA::Key, Key = MapA::Key> + SimpleCollectionRef, MapA::Key: Clone + Eq, MapA::Item: Clone, MapB::Item: Clone, MapOut: Default + MapInsert<MapA::Key> + Collection<Item = ValFunc::Output>,

source§

type Output = MapUnion<MapOut>

The output lattice type.
source§

fn call(&mut self, lat_a: MapUnion<MapA>, lat_b: MapUnion<MapB>) -> Self::Output

Executes the function.

Auto Trait Implementations§

§

impl<MapOut, Bimorphism> Freeze for KeyedBimorphism<MapOut, Bimorphism>
where Bimorphism: Freeze,

§

impl<MapOut, Bimorphism> RefUnwindSafe for KeyedBimorphism<MapOut, Bimorphism>
where Bimorphism: RefUnwindSafe,

§

impl<MapOut, Bimorphism> Send for KeyedBimorphism<MapOut, Bimorphism>
where Bimorphism: Send,

§

impl<MapOut, Bimorphism> Sync for KeyedBimorphism<MapOut, Bimorphism>
where Bimorphism: Sync,

§

impl<MapOut, Bimorphism> Unpin for KeyedBimorphism<MapOut, Bimorphism>
where Bimorphism: Unpin,

§

impl<MapOut, Bimorphism> UnwindSafe for KeyedBimorphism<MapOut, Bimorphism>
where Bimorphism: 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> 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.