SetBit

Trait SetBit 

Source
pub trait SetBit<I, B> {
    type Output;

    // Required method
    #[doc(hidden)] fn set_bit<IM: InternalMarker>(
        self,
        _: I,
        _: B,
    ) -> Self::Output;
}
Expand description

A type operator that, when implemented for unsigned integer N, sets the bit at position I to B.

Required Associated Types§

Required Methods§

Source

#[doc(hidden)] fn set_bit<IM: InternalMarker>(self, _: I, _: B) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<N, I, B> SetBit<I, B> for N
where N: PrivateSetBit<I, B>, PrivateSetBitOut<N, I, B>: Trim,

Source§

type Output = <<N as PrivateSetBit<I, B>>::Output as Trim>::Output