pub struct SerializeElement<'s, W: Write> { /* private fields */ }Trait Implementations§
Source§impl<W: Write> SerializeAttributes for SerializeElement<'_, W>
impl<W: Write> SerializeAttributes for SerializeElement<'_, W>
Source§fn serialize_attribute<A: SerializeAttribute>(
&mut self,
a: &A,
) -> Result<Self::Ok, Self::Error>
fn serialize_attribute<A: SerializeAttribute>( &mut self, a: &A, ) -> Result<Self::Ok, Self::Error>
Serializes an attribute.
Source§impl<'s, W: Write> SerializeElement for SerializeElement<'s, W>
impl<'s, W: Write> SerializeElement for SerializeElement<'s, W>
Source§type SerializeElementChildren = SerializeElementChildren<'s, W>
type SerializeElementChildren = SerializeElementChildren<'s, W>
The type of the value that is returned when serialization is successful.
Source§fn include_prefix(
&mut self,
should_enforce: IncludePrefix,
) -> Result<Self::Ok, Self::Error>
fn include_prefix( &mut self, should_enforce: IncludePrefix, ) -> Result<Self::Ok, Self::Error>
Always serialize this element with the given prefix.
Source§fn preferred_prefix(
&mut self,
preferred_prefix: Option<Prefix<'_>>,
) -> Result<Self::Ok, Self::Error>
fn preferred_prefix( &mut self, preferred_prefix: Option<Prefix<'_>>, ) -> Result<Self::Ok, Self::Error>
Set the preferred prefix for this element.
Source§fn serialize_children(
self,
) -> Result<Self::SerializeElementChildren, Self::Error>
fn serialize_children( self, ) -> Result<Self::SerializeElementChildren, Self::Error>
Serialize the children of this element.
Auto Trait Implementations§
impl<'s, W> Freeze for SerializeElement<'s, W>
impl<'s, W> RefUnwindSafe for SerializeElement<'s, W>where
W: RefUnwindSafe,
impl<'s, W> Send for SerializeElement<'s, W>where
W: Send,
impl<'s, W> Sync for SerializeElement<'s, W>where
W: Sync,
impl<'s, W> Unpin for SerializeElement<'s, W>
impl<'s, W> !UnwindSafe for SerializeElement<'s, W>
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