pub struct CommandPart {
pub optional: bool,
pub short: String,
pub long: String,
}Expand description
Represents a part of an SCPI command, such as “STATus” in “STATus:EVENt?”.
Each part has both a short form (uppercase letters only) and a long form (complete word). SCPI allows using either form in commands.
For example, “STATus” can be written as either “STAT” (short form) or “STATUS” (long form).
Fields§
§optional: boolWhether this command part is optional.
short: StringThe short form of the command part.
long: StringThe long form of the command part.
Trait Implementations§
Source§impl Clone for CommandPart
impl Clone for CommandPart
Source§fn clone(&self) -> CommandPart
fn clone(&self) -> CommandPart
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandPart
impl Debug for CommandPart
Source§impl PartialEq for CommandPart
impl PartialEq for CommandPart
impl StructuralPartialEq for CommandPart
Auto Trait Implementations§
impl Freeze for CommandPart
impl RefUnwindSafe for CommandPart
impl Send for CommandPart
impl Sync for CommandPart
impl Unpin for CommandPart
impl UnwindSafe for CommandPart
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