pub struct Node { /* private fields */ }Expand description
An introspection tree node (typically the root of the XML document).
Implementations
sourceimpl Node
impl Node
sourcepub fn from_reader<R: Read>(reader: R) -> Result<Node, Error>
pub fn from_reader<R: Read>(reader: R) -> Result<Node, 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) -> Vec<&Interface>
pub fn interfaces(&self) -> Vec<&Interface>
Returns the interfaces on this node.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more