pub trait ScpiEnum where
Self: Sized, {
fn from_mnemonic(s: &[u8]) -> Option<Self>;
fn to_mnemonic(&self) -> &'static [u8];
fn from_token(value: Token<'_>) -> Result<Self> { ... }
}
pub trait ScpiEnum where
Self: Sized, {
fn from_mnemonic(s: &[u8]) -> Option<Self>;
fn to_mnemonic(&self) -> &'static [u8];
fn from_token(value: Token<'_>) -> Result<Self> { ... }
}