pub trait ShlChecked<Rhs = Self>where
Rhs: ?Sized,{
type Output;
// Required method
fn shl_checked(&self, rhs: &Rhs) -> Self::Output;
}
Expand description
Binary operator for left shifting a value, checking that the rhs is less than the number of bits in self.
Required Associated Types§
Required Methods§
fn shl_checked(&self, rhs: &Rhs) -> Self::Output
Trait Implementations§
Source§impl<E, I, M> Metrics<dyn ShlChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E, I, M> Metrics<dyn ShlChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E, I, M> OutputMode<dyn ShlChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E, I, M> OutputMode<dyn ShlChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
type Case = (Mode, Mode)
Source§fn output_mode(
case: &<Integer<E, I> as OutputMode<dyn ShlChecked<Integer<E, M>, Output = Integer<E, I>>>>::Case,
) -> Mode
fn output_mode( case: &<Integer<E, I> as OutputMode<dyn ShlChecked<Integer<E, M>, Output = Integer<E, I>>>>::Case, ) -> Mode
Returns the mode of the output.