Enum scpi::expression::channel_list::Token
source · [−]pub enum Token<'a> {
ChannelSpec(ChannelSpec<'a>),
ChannelRange(ChannelSpec<'a>, ChannelSpec<'a>),
ModuleChannel(&'a [u8], &'a [u8]),
PathName(&'a [u8]),
Separator,
}
Expand description
Channel list token
Variants
ChannelSpec(ChannelSpec<'a>)
A channel spec consisting of at least one numeric.
Example: 1!2!3
is a three-dimensional spec
ChannelRange(ChannelSpec<'a>, ChannelSpec<'a>)
A range consisting of two channel-specs separated by a colon.
Example: 1!1:2!3
is a range from ‘1,1’ to ‘2,3’ (row-major)
ModuleChannel(&'a [u8], &'a [u8])
A module-channel, contains a module (numeric or character data) and a sub-channel-list.
PathName(&'a [u8])
A character pathname (can be a file, resource etc…)
Separator
A channel separator i.e. comma
Trait Implementations
impl<'a> StructuralPartialEq for Token<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Token<'a>
impl<'a> Send for Token<'a>
impl<'a> Sync for Token<'a>
impl<'a> Unpin for Token<'a>
impl<'a> UnwindSafe for Token<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more