pub struct BleChannels;Expand description
A namespace of methods to manage the supported range of BLE channels.
Implementations§
Source§impl BleChannels
impl BleChannels
Sourcepub fn index_of(channel: u8) -> Option<usize>
pub fn index_of(channel: u8) -> Option<usize>
Get the index of BLE_CHANNEL for the given channel.
Returns None if the given current channel is not in BLE_CHANNEL.
Auto Trait Implementations§
impl Freeze for BleChannels
impl RefUnwindSafe for BleChannels
impl Send for BleChannels
impl Sync for BleChannels
impl Unpin for BleChannels
impl UnwindSafe for BleChannels
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more