#[non_exhaustive]pub enum FeatureValue {
None,
Integer(i64),
Float(f64),
Boolean(bool),
Enum(String),
String(String),
Register {
len: u32,
},
}Expand description
A feature’s current value, typed by the node that holds it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Nothing to read: a category, a command, a write-only feature, a node a command writes through, or a feature not implemented or not available now.
Integer(i64)
An Integer, IntConverter or integer SwissKnife.
Float(f64)
A Float, Converter or float SwissKnife.
Boolean(bool)
A Boolean.
Enum(String)
The symbolic name of an Enumeration’s current entry.
String(String)
A StringReg.
Register
A raw <Register>, reported by size rather than content.
A register can be very large — the Micro-Epsilon scanCONTROL declares
a 100 000-byte FileAccessBuffer — and viewers poll feature state, so
copying the payload into every snapshot would be a poor trade for a
value nothing renders. Read it with NodeMap::get_register.
Trait Implementations§
Source§impl Clone for FeatureValue
impl Clone for FeatureValue
Source§impl Debug for FeatureValue
impl Debug for FeatureValue
Source§impl PartialEq for FeatureValue
impl PartialEq for FeatureValue
impl StructuralPartialEq for FeatureValue
Auto Trait Implementations§
impl Freeze for FeatureValue
impl RefUnwindSafe for FeatureValue
impl Send for FeatureValue
impl Sync for FeatureValue
impl Unpin for FeatureValue
impl UnsafeUnpin for FeatureValue
impl UnwindSafe for FeatureValue
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