pub struct NodeMap<'parent> { /* private fields */ }Expand description
Borrowed GenICam node map tied to the lifetime of its parent object.
Implementations§
Source§impl<'parent> NodeMap<'parent>
impl<'parent> NodeMap<'parent>
Sourcepub fn load<P: AsRef<Path>>(&self, path: P, validate: bool) -> PylonResult<()>
pub fn load<P: AsRef<Path>>(&self, path: P, validate: bool) -> PylonResult<()>
Loads feature settings from a file.
Sourcepub fn save<P: AsRef<Path>>(&self, path: P) -> PylonResult<()>
pub fn save<P: AsRef<Path>>(&self, path: P) -> PylonResult<()>
Saves feature settings to a file.
Sourcepub fn load_from_string(
&self,
features: String,
validate: bool,
) -> PylonResult<()>
pub fn load_from_string( &self, features: String, validate: bool, ) -> PylonResult<()>
Loads feature settings from a serialized string.
Sourcepub fn save_to_string(&self) -> PylonResult<String>
pub fn save_to_string(&self) -> PylonResult<String>
Serializes the node map into a string.
Sourcepub fn boolean_node(&self, name: &str) -> PylonResult<BooleanNode>
pub fn boolean_node(&self, name: &str) -> PylonResult<BooleanNode>
Returns a boolean node by name.
Sourcepub fn integer_node(&self, name: &str) -> PylonResult<IntegerNode>
pub fn integer_node(&self, name: &str) -> PylonResult<IntegerNode>
Returns an integer node by name.
Sourcepub fn float_node(&self, name: &str) -> PylonResult<FloatNode>
pub fn float_node(&self, name: &str) -> PylonResult<FloatNode>
Returns a floating-point node by name.
Sourcepub fn enum_node(&self, name: &str) -> PylonResult<EnumNode>
pub fn enum_node(&self, name: &str) -> PylonResult<EnumNode>
Returns an enum node by name.
Sourcepub fn command_node(&self, name: &str) -> PylonResult<CommandNode>
pub fn command_node(&self, name: &str) -> PylonResult<CommandNode>
Returns a command node by name.
Auto Trait Implementations§
impl<'parent> Freeze for NodeMap<'parent>
impl<'parent> RefUnwindSafe for NodeMap<'parent>
impl<'parent> !Send for NodeMap<'parent>
impl<'parent> !Sync for NodeMap<'parent>
impl<'parent> Unpin for NodeMap<'parent>
impl<'parent> UnsafeUnpin for NodeMap<'parent>
impl<'parent> UnwindSafe for NodeMap<'parent>
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