Skip to main content

Intersect

Trait Intersect 

Source
pub trait Intersect<Other: HList>: HList {
    type Output: HList;
}
Expand description

Checked intersection of two sorted HLists.

This trait assumes Self and Other are SortedHLists, and yields an HList of their intersection. It does not re-check sortedness of the result (to avoid deep recursion in the compiler).

Required Associated Types§

Source

type Output: HList

Intersection of two sorted lists. Must itself be an HList.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<LA, LB> Intersect<LB> for LA