#[non_exhaustive]pub struct IndexedValue<T> {
pub index: String,
pub entries: Vec<IndexedEntry<T>>,
pub default: Option<IndexedSrc<T>>,
}Expand description
An <Integer> or <Float> that picks its value from a table by the value
of an index node (GenICam Standard v2.1.1 §2.8.5, §2.8.9):
<Integer Name="d_90">
<pIndex>d_88</pIndex>
<pValueIndexed Index="3">d_257</pValueIndexed>
<pValueDefault>d_1049</pValueDefault>
</Integer>The entry whose index the <pIndex> node reads is the value; an index no
entry names takes the default. On such a node <pIndex> is not an address
term: reading it as one is how a Basler a2A4096-44g5m’s TriggerMode
read the GigE Vision bootstrap register at 3 × 4 (issue #210).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: String<pIndex>: the node whose value selects the entry.
entries: Vec<IndexedEntry<T>>The entries, in document order.
default: Option<IndexedSrc<T>><ValueDefault> or <pValueDefault>: the value for an index no entry
names.
Implementations§
Source§impl<T> IndexedValue<T>
impl<T> IndexedValue<T>
Sourcepub fn value_nodes(&self) -> Vec<&str>
pub fn value_nodes(&self) -> Vec<&str>
The nodes an entry or the default reads, each once, in document order.
Sourcepub fn referenced_nodes(&self) -> Vec<&str>
pub fn referenced_nodes(&self) -> Vec<&str>
Every node the value depends on: the index node, then
IndexedValue::value_nodes.
Trait Implementations§
Source§impl<T: Clone> Clone for IndexedValue<T>
impl<T: Clone> Clone for IndexedValue<T>
Source§impl<T: Debug> Debug for IndexedValue<T>
impl<T: Debug> Debug for IndexedValue<T>
Source§impl<'de, T> Deserialize<'de> for IndexedValue<T>where
T: Deserialize<'de> + Default,
impl<'de, T> Deserialize<'de> for IndexedValue<T>where
T: Deserialize<'de> + Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: PartialEq> PartialEq for IndexedValue<T>
impl<T: PartialEq> PartialEq for IndexedValue<T>
Source§impl<T> Serialize for IndexedValue<T>where
T: Serialize,
impl<T> Serialize for IndexedValue<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for IndexedValue<T>
Auto Trait Implementations§
impl<T> Freeze for IndexedValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for IndexedValue<T>where
T: RefUnwindSafe,
impl<T> Send for IndexedValue<T>where
T: Send,
impl<T> Sync for IndexedValue<T>where
T: Sync,
impl<T> Unpin for IndexedValue<T>where
T: Unpin,
impl<T> UnsafeUnpin for IndexedValue<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for IndexedValue<T>where
T: UnwindSafe,
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