pub enum Selector<'a> {
Component(&'a str),
Index(u32),
IndexRange {
low: u32,
count: u32,
},
AllElements,
}Expand description
One step inside a named variable: which part of its value a reference names.
A reference names a variable and, sometimes, a part of it. MMXU1.TotW.mag.f is a
variable all the way down, because every component of it has a name in the MMS namespace.
MHAI1.HA.phsAHar(2).cVal.mag.f is not: phsAHar is an array, MMS gives its elements
no names, and everything from the index on has to be carried beside the name as an
alternateAccess (proto::mms::alternate). This is the modelling half of that; the wire
half lives with the codec.
Variants§
Component(&'a str)
A named component of a structure — cVal, mag, f.
Index(u32)
One element of an array, counted from zero.
IndexRange
A run of elements of an array.
AllElements
Every element of an array. Distinct from no selection: it says the value is an array and that the client knows it.