BitUnion

Trait BitUnion 

Source
pub trait BitUnion<Rhs = Self> {
    type Output;

    // Required method
    fn union(self, rhs: Rhs) -> Self::Output;
}
Expand description

Union of bit-sets.

Required Associated Types§

Required Methods§

Source

fn union(self, rhs: Rhs) -> Self::Output

Returns bit-set with bits set for each index that has bit set in both of two arguments.

Implementations on Foreign Types§

Source§

impl BitUnion for bool

Source§

type Output = bool

Source§

fn union(self, rhs: Self) -> Self

Source§

impl BitUnion for u8

Source§

type Output = u8

Source§

fn union(self, rhs: Self) -> Self

Source§

impl BitUnion for u16

Source§

type Output = u16

Source§

fn union(self, rhs: Self) -> Self

Source§

impl BitUnion for u32

Source§

type Output = u32

Source§

fn union(self, rhs: Self) -> Self

Source§

impl BitUnion for u64

Source§

type Output = u64

Source§

fn union(self, rhs: Self) -> Self

Source§

impl BitUnion for u128

Source§

type Output = u128

Source§

fn union(self, rhs: Self) -> Self

Source§

impl BitUnion<Complement<bool>> for bool

Source§

type Output = Complement<bool>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Source§

impl BitUnion<Complement<u8>> for u8

Source§

type Output = Complement<u8>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Source§

impl BitUnion<Complement<u16>> for u16

Source§

type Output = Complement<u16>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Source§

impl BitUnion<Complement<u32>> for u32

Source§

type Output = Complement<u32>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Source§

impl BitUnion<Complement<u64>> for u64

Source§

type Output = Complement<u64>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Source§

impl BitUnion<Complement<u128>> for u128

Source§

type Output = Complement<u128>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Source§

impl<T, U> BitUnion<U> for Option<T>
where T: BitUnion<U>, U: Into<T::Output>,

Source§

type Output = <T as BitUnion<U>>::Output

Source§

fn union(self, rhs: U) -> T::Output

Source§

impl<T, U> BitUnion<U> for &T

Source§

type Output = Union<&T, U>

Source§

fn union(self, rhs: U) -> Union<Self, U>

Source§

impl<T, U> BitUnion<U> for &mut T

Source§

type Output = Union<&mut T, U>

Source§

fn union(self, rhs: U) -> Union<Self, U>

Source§

impl<T, U> BitUnion<U> for Box<T>

Source§

type Output = Union<Box<T>, U>

Source§

fn union(self, rhs: U) -> Union<Self, U>

Source§

impl<const N: usize> BitUnion for [u8; N]

Source§

type Output = [u8; N]

Source§

fn union(self, rhs: Self) -> Self

Source§

impl<const N: usize> BitUnion for [u16; N]

Source§

type Output = [u16; N]

Source§

fn union(self, rhs: Self) -> Self

Source§

impl<const N: usize> BitUnion for [u32; N]

Source§

type Output = [u32; N]

Source§

fn union(self, rhs: Self) -> Self

Source§

impl<const N: usize> BitUnion for [u64; N]

Source§

type Output = [u64; N]

Source§

fn union(self, rhs: Self) -> Self

Source§

impl<const N: usize> BitUnion for [u128; N]

Source§

type Output = [u128; N]

Source§

fn union(self, rhs: Self) -> Self

Source§

impl<const N: usize> BitUnion<Complement<[u8; N]>> for [u8; N]

Source§

type Output = Complement<[u8; N]>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Source§

impl<const N: usize> BitUnion<Complement<[u16; N]>> for [u16; N]

Source§

type Output = Complement<[u16; N]>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Source§

impl<const N: usize> BitUnion<Complement<[u32; N]>> for [u32; N]

Source§

type Output = Complement<[u32; N]>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Source§

impl<const N: usize> BitUnion<Complement<[u64; N]>> for [u64; N]

Source§

type Output = Complement<[u64; N]>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Source§

impl<const N: usize> BitUnion<Complement<[u128; N]>> for [u128; N]

Source§

type Output = Complement<[u128; N]>

Source§

fn union(self, rhs: Complement<Self>) -> Complement<Self>

Implementors§

Source§

impl<T, B, U, const N: usize> BitUnion<U> for Layered<T, B, N>

Source§

type Output = Union<Layered<T, B, N>, U>

Source§

impl<T, U> BitUnion<U> for Complement<T>
where T: BitDifference<U>,

Source§

impl<T, U, Y> BitUnion<Y> for Difference<T, U>

Source§

impl<T, U, Y> BitUnion<Y> for Intersection<T, U>
where T: BitUnion<Y>, U: BitUnion<Y>, Y: Copy,

Source§

type Output = Intersection<<T as BitUnion<Y>>::Output, <U as BitUnion<Y>>::Output>

Source§

impl<T, U, Y> BitUnion<Y> for Union<T, U>
where T: BitUnion<Y>,

Source§

type Output = Union<<T as BitUnion<Y>>::Output, U>