pub struct FloatNode {Show 15 fields
pub name: String,
pub meta: NodeMeta,
pub addressing: Option<Addressing>,
pub access: AccessMode,
pub min: f64,
pub max: f64,
pub unit: Option<String>,
pub scale: Option<(i64, i64)>,
pub offset: Option<f64>,
pub selectors: Vec<String>,
pub selected_if: Vec<(String, Vec<String>)>,
pub pvalue: Option<String>,
pub encoding: FloatEncoding,
pub byte_order: ByteOrder,
pub predicates: PredicateRefs,
/* private fields */
}Expand description
Floating point feature metadata.
Fields§
§name: String§meta: NodeMetaShared metadata (visibility, description, tooltip, etc.).
addressing: Option<Addressing>Register addressing metadata (absent when delegated via pvalue).
access: AccessMode§min: f64§max: f64§unit: Option<String>§scale: Option<(i64, i64)>Optional rational scale (numerator, denominator) applied to the raw value.
offset: Option<f64>Optional offset added after scaling.
selectors: Vec<String>§selected_if: Vec<(String, Vec<String>)>§pvalue: Option<String>Node providing the value (delegates read/write).
encoding: FloatEncodingHow the register payload is encoded (IEEE 754 or scaled integer).
byte_order: ByteOrderByte order of the register payload.
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FloatNode
impl !RefUnwindSafe for FloatNode
impl Send for FloatNode
impl !Sync for FloatNode
impl Unpin for FloatNode
impl UnwindSafe for FloatNode
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