pub struct Node(_);
Expand description
An uninterpreted node.
Implementations§
source§impl Node
impl Node
sourcepub fn as_integer<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<IntegerNode>where
Ctxt: GenApiCtxt,
pub fn as_integer<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<IntegerNode>where Ctxt: GenApiCtxt,
Try downcasting to IntegerNode
. Returns None
if downcast failed.
sourcepub fn as_float<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<FloatNode>where
Ctxt: GenApiCtxt,
pub fn as_float<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<FloatNode>where Ctxt: GenApiCtxt,
Try downcasting to FloatNode
. Returns None
if downcast failed.
sourcepub fn as_string<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<StringNode>where
Ctxt: GenApiCtxt,
pub fn as_string<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<StringNode>where Ctxt: GenApiCtxt,
Try downcasting to StringNode
. Returns None
if downcast failed.
sourcepub fn as_enumeration<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<EnumerationNode>where
Ctxt: GenApiCtxt,
pub fn as_enumeration<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<EnumerationNode>where Ctxt: GenApiCtxt,
Try downcasting to EnumerationNode
. Returns None
if downcast failed.
sourcepub fn as_enum_entry<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<EnumEntryNode>where
Ctxt: GenApiCtxt,
pub fn as_enum_entry<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<EnumEntryNode>where Ctxt: GenApiCtxt,
Try downcasting to EnumEntryNode
. Returns None
if downcast failed.
sourcepub fn as_command<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<CommandNode>where
Ctxt: GenApiCtxt,
pub fn as_command<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<CommandNode>where Ctxt: GenApiCtxt,
Try downcasting to CommandNode
. Returns None
if downcast failed.
sourcepub fn as_boolean<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<BooleanNode>where
Ctxt: GenApiCtxt,
pub fn as_boolean<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<BooleanNode>where Ctxt: GenApiCtxt,
Try downcasting to BooleanNode
. Returns None
if downcast failed.
sourcepub fn as_register<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<RegisterNode>where
Ctxt: GenApiCtxt,
pub fn as_register<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<RegisterNode>where Ctxt: GenApiCtxt,
Try downcasting to RegisterNode
. Returns None
if downcast failed.
sourcepub fn as_category<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<CategoryNode>where
Ctxt: GenApiCtxt,
pub fn as_category<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<CategoryNode>where Ctxt: GenApiCtxt,
Try downcasting to CategoryNode
. Returns None
if downcast failed.
sourcepub fn as_port<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<PortNode>where
Ctxt: GenApiCtxt,
pub fn as_port<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<PortNode>where Ctxt: GenApiCtxt,
Try downcasting to PortNode
. Returns None
if downcast failed.
sourcepub fn name<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> &strwhere
Ctxt: GenApiCtxt,
pub fn name<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> &strwhere Ctxt: GenApiCtxt,
Returns name of the node.
sourcepub fn display_name<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> &strwhere
Ctxt: GenApiCtxt,
pub fn display_name<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> &strwhere Ctxt: GenApiCtxt,
Returns display name of the node. This method is mainly for GUI.
sourcepub fn name_space<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> NameSpacewhere
Ctxt: GenApiCtxt,
pub fn name_space<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> NameSpacewhere Ctxt: GenApiCtxt,
Returns name space of the node.
sourcepub fn description<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<&str>where
Ctxt: GenApiCtxt,
pub fn description<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<&str>where Ctxt: GenApiCtxt,
Returns description of the node if exists. This method is mainly for GUI.
sourcepub fn expose_static<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<bool>where
Ctxt: GenApiCtxt,
pub fn expose_static<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<bool>where Ctxt: GenApiCtxt,
Returns expose static of the node if exists. This method is mainly for GUI.
sourcepub fn visibility<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> Visibilitywhere
Ctxt: GenApiCtxt,
pub fn visibility<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> Visibilitywhere Ctxt: GenApiCtxt,
Returns visibility of the node. This method is mainly for GUI.
sourcepub fn is_deprecated<Ctlr, Ctxt>(self, ctxt: &ParamsCtxt<Ctlr, Ctxt>) -> boolwhere
Ctxt: GenApiCtxt,
pub fn is_deprecated<Ctlr, Ctxt>(self, ctxt: &ParamsCtxt<Ctlr, Ctxt>) -> boolwhere Ctxt: GenApiCtxt,
Returns true
if the node is marked as deprecated.
sourcepub fn event_id<Ctlr, Ctxt>(self, ctxt: &ParamsCtxt<Ctlr, Ctxt>) -> Option<u64>where
Ctxt: GenApiCtxt,
pub fn event_id<Ctlr, Ctxt>(self, ctxt: &ParamsCtxt<Ctlr, Ctxt>) -> Option<u64>where Ctxt: GenApiCtxt,
Returns event id of the node if exists.
sourcepub fn tooltip<Ctlr, Ctxt>(self, ctxt: &ParamsCtxt<Ctlr, Ctxt>) -> Option<&str>where
Ctxt: GenApiCtxt,
pub fn tooltip<Ctlr, Ctxt>(self, ctxt: &ParamsCtxt<Ctlr, Ctxt>) -> Option<&str>where Ctxt: GenApiCtxt,
Returns tooltip of the node. This method is mainly for GUI.