pub struct Node {
pub type_name: String,
pub kind: Kind,
pub dims: Vec<u64>,
pub member: bool,
pub instance_id: Option<u32>,
pub structure_size: Option<u64>,
}Expand description
A tag or a structure member.
Fields§
§type_name: StringThe controller’s type name: DINT, a UDT name, DWORD for a BOOL array; empty when unknown.
kind: KindAtomic, structure or string.
dims: Vec<u64>Array dims: a tag’s dimensions, a member’s [array]; empty for a scalar. A BOOL array (tag or member)
counts the 32-bit words that hold it, as controllers report it.
member: boolTrue for a structure member.
instance_id: Option<u32>The symbol instance ID of a tag.
structure_size: Option<u64>Bytes of a value of a structure or string type.
Implementations§
Source§impl Node
impl Node
Sourcepub fn bool_array(&self) -> bool
pub fn bool_array(&self) -> bool
A BOOL array: a DWORD array.
Sourcepub fn client_type(&self) -> &str
pub fn client_type(&self) -> &str
The type as clients see it: BOOL for a BOOL array, STRING for any string type.
Sourcepub fn client_dims(&self) -> Vec<u64>
pub fn client_dims(&self) -> Vec<u64>
The dims as clients see them: a BOOL array’s words as BOOLs.
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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