pub struct XML;Expand description
Stof XML interface.
Implementations§
Source§impl XML
impl XML
Sourcepub fn stringify_node(graph: &SGraph, node: impl IntoNodeRef) -> Result<String>
pub fn stringify_node(graph: &SGraph, node: impl IntoNodeRef) -> Result<String>
Stringify a node as an XML string.
Trait Implementations§
Source§impl Format for XML
impl Format for XML
Source§fn content_type(&self) -> String
fn content_type(&self) -> String
Content type.
Source§fn header_import(
&self,
pid: &str,
doc: &mut SDoc,
_content_type: &str,
bytes: &mut Bytes,
as_name: &str,
) -> Result<()>
fn header_import( &self, pid: &str, doc: &mut SDoc, _content_type: &str, bytes: &mut Bytes, as_name: &str, ) -> Result<()>
Header import.
Source§fn string_import(
&self,
pid: &str,
doc: &mut SDoc,
src: &str,
as_name: &str,
) -> Result<()>
fn string_import( &self, pid: &str, doc: &mut SDoc, src: &str, as_name: &str, ) -> Result<()>
String import.
Source§fn file_import(
&self,
pid: &str,
doc: &mut SDoc,
_format: &str,
full_path: &str,
_extension: &str,
as_name: &str,
) -> Result<()>
fn file_import( &self, pid: &str, doc: &mut SDoc, _format: &str, full_path: &str, _extension: &str, as_name: &str, ) -> Result<()>
File import.
Source§fn export_string(
&self,
_pid: &str,
doc: &SDoc,
node: Option<&SNodeRef>,
) -> Result<String>
fn export_string( &self, _pid: &str, doc: &SDoc, node: Option<&SNodeRef>, ) -> Result<String>
Export string.
Auto Trait Implementations§
impl Freeze for XML
impl RefUnwindSafe for XML
impl Send for XML
impl Sync for XML
impl Unpin for XML
impl UnwindSafe for XML
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more