pub struct Node<'a> { /* private fields */ }Expand description
An introspection tree node (typically the root of the XML document).
Implementations§
source§impl<'a> Node<'a>
impl<'a> Node<'a>
sourcepub fn from_reader<R: Read>(reader: R) -> Result<Node<'a>, Error>
pub fn from_reader<R: Read>(reader: R) -> Result<Node<'a>, Error>
Parse the introspection XML document from reader.
sourcepub fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>
pub fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>
Write the XML document to writer.
sourcepub fn interfaces(&self) -> &[Interface<'a>]
pub fn interfaces(&self) -> &[Interface<'a>]
Returns the interfaces on this node.
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Node<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Node<'a>
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