pub struct Channel(/* private fields */);Expand description
一路模拟输入(S0A … S2D)。
use seekdas::Channel;
let ch: Channel = "S1C".parse().unwrap();
assert_eq!(ch.index(), 6);
assert_eq!(ch.slot(), 1);
assert_eq!(ch.to_string(), "S1C");
assert_eq!(Channel::S2D.index(), 11);Implementations§
Source§impl Channel
impl Channel
pub const S0A: Channel
pub const S0B: Channel
pub const S0C: Channel
pub const S0D: Channel
pub const S1A: Channel
pub const S1B: Channel
pub const S1C: Channel
pub const S1D: Channel
pub const S2A: Channel
pub const S2B: Channel
pub const S2C: Channel
pub const S2D: Channel
Trait Implementations§
Source§impl From<Channel> for ChannelMask
impl From<Channel> for ChannelMask
Source§impl FromIterator<Channel> for ChannelMask
impl FromIterator<Channel> for ChannelMask
Source§impl Ord for Channel
impl Ord for Channel
Source§impl PartialOrd for Channel
impl PartialOrd for Channel
impl Copy for Channel
impl Eq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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