pub enum Const<const N: u8> {}
Expand description
Type-level constant for PIT channels.
When combined with Valid
, this can constrain an API to accept
only valid PIT channel constants. See Pit::new()
for an example.
Trait Implementations§
impl Valid for Const<0>
impl Valid for Const<1>
impl Valid for Const<2>
impl Valid for Const<3>
Auto Trait Implementations§
impl<const N: u8> RefUnwindSafe for Const<N>
impl<const N: u8> Send for Const<N>
impl<const N: u8> Sync for Const<N>
impl<const N: u8> Unpin for Const<N>
impl<const N: u8> UnwindSafe for Const<N>
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