INode

Trait INode 

Source
pub trait INode {
    // Required methods
    fn name(&self) -> &str;
    fn as_node(&mut self) -> Node<'_>;
    fn as_inode(&mut self) -> &mut dyn INode;
}
Expand description

Node interface.

Required Methods§

Source

fn name(&self) -> &str

Returns the node name.

Source

fn as_node(&mut self) -> Node<'_>

Downcasts to a more specific node interface.

Source

fn as_inode(&mut self) -> &mut dyn INode

Upcasts back to an INode trait object.

Implementors§

Source§

impl INode for Node<'_>

Source§

impl<'a, 'x> INode for List<'a, 'x>

Source§

impl<'a, 'x, T> INode for ClampedProp<'a, 'x, T>
where T: Clone + Default + PartialEq + PartialOrd + Display + FromStr, T::Err: StdError + Send + Sync + 'static,

Source§

impl<'a, 'x, T> INode for Property<'a, 'x, T>
where T: Clone + Default + PartialEq + Display + FromStr, T::Err: StdError + Send + Sync + 'static,

Source§

impl<'a, F: FnMut(&str, &mut dyn IWrite)> INode for Action<'a, F>

Source§

impl<'a, T: PartialEq + IValue> INode for ReadOnlyProp<'a, T>

Source§

impl<T> INode for OwnedProp<T>
where T: Clone + Default + PartialEq + Display + FromStr, T::Err: StdError + Send + Sync + 'static,