TryBitAnd

Trait TryBitAnd 

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

    // Required method
    fn try_bitand(self, rhs: Rhs) -> Result<Self::Output, Self::Error>;
}
Expand description

The try trait for BitAnd.

Required Associated Types§

Source

type Error

The type returned in the event of an error.

Source

type Output

The type returned after performing the operation.

Required Methods§

Source

fn try_bitand(self, rhs: Rhs) -> Result<Self::Output, Self::Error>

The fallible equivalent of BitAnd::bitand.

Implementors§

Source§

impl<T: BitAnd<Rhs>, Rhs> TryBitAnd<Rhs> for T