Struct mccs::VcpDescriptor
source · pub struct VcpDescriptor {
pub name: Option<String>,
pub values: ValueNames,
}
Expand description
Descriptive information about a supported VCP feature code.
Fields§
§name: Option<String>
The name of the feature code, if different from the standard MCCS spec.
values: ValueNames
Allowed values for this feature, and optionally their names.
This is used for non-continuous VCP types.
Implementations§
Trait Implementations§
source§impl Clone for VcpDescriptor
impl Clone for VcpDescriptor
source§fn clone(&self) -> VcpDescriptor
fn clone(&self) -> VcpDescriptor
Returns a copy 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 VcpDescriptor
impl Debug for VcpDescriptor
source§impl Default for VcpDescriptor
impl Default for VcpDescriptor
source§fn default() -> VcpDescriptor
fn default() -> VcpDescriptor
Returns the “default value” for a type. Read more
source§impl Hash for VcpDescriptor
impl Hash for VcpDescriptor
source§impl Ord for VcpDescriptor
impl Ord for VcpDescriptor
source§fn cmp(&self, other: &VcpDescriptor) -> Ordering
fn cmp(&self, other: &VcpDescriptor) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<VcpDescriptor> for VcpDescriptor
impl PartialEq<VcpDescriptor> for VcpDescriptor
source§fn eq(&self, other: &VcpDescriptor) -> bool
fn eq(&self, other: &VcpDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<VcpDescriptor> for VcpDescriptor
impl PartialOrd<VcpDescriptor> for VcpDescriptor
source§fn partial_cmp(&self, other: &VcpDescriptor) -> Option<Ordering>
fn partial_cmp(&self, other: &VcpDescriptor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more