pub fn try_insert(&mut self, index: ChannelIndex) -> Result<(), ot::ChannelOutOfRange> {
        if index >= MAX_NUM_CHANNELS {
            Err(ot::ChannelOutOfRange)
        } else {
            let mask = 1u32 << index;
            self.0 |= mask;
            Ok(())
        }
    }
/// Try to insert the given channel into the channel mask.
///
/// If the channel mask is out of range (0-31), the method will
/// return `Err(ChannelOutOfRange)`.
Try to insert the given channel into the channel mask.
If the channel mask is out of range (0-31), the method will
return `Err(ChannelOutOfRange)`.
Try to insert the given channel into the channel mask . If the channel mask is out of range ( 0 - 31 ) the method will return ` Err ( ChannelOutOfRange ) ` .
pub fn try_insert(&mut self, index: ChannelIndex) -> Result<(), ot::ChannelOutOfRange> {
        if index >= MAX_NUM_CHANNELS {
            Err(ot::ChannelOutOfRange)
        } else {
            let mask = 1u32 << index;
            self.0 |= mask;
            Ok(())
        }
    }
pub fn try_insert ( & mut self , index : ChannelIndex ) -> Result < ( ) , ot :: ChannelOutOfRange > { if index >= MAX_NUM_CHANNELS { Err ( ot :: ChannelOutOfRange ) } else { let mask = 1u32 << index ; self . 0 |= mask ; Ok ( ( ) ) } }
Try to insert the given channel into the channel mask.
Try to insert the given channel into the channel mask .
&mut self
index
ChannelIndex
&mut self
index
ChannelIndex