Struct yaserde::ser::Serializer
source · [−]pub struct Serializer<W: Write> { /* private fields */ }
Implementations
sourceimpl<'de, W: Write> Serializer<W>
impl<'de, W: Write> Serializer<W>
pub fn new(writer: EventWriter<W>) -> Self
pub fn new_from_writer(writer: W, config: &Config) -> Self
pub fn new_for_inner(writer: W) -> Self
pub fn into_inner(self) -> W
pub fn skip_start_end(&self) -> bool
pub fn set_skip_start_end(&mut self, state: bool)
pub fn get_start_event_name(&self) -> Option<String>
pub fn set_start_event_name(&mut self, name: Option<String>)
pub fn write<'a, E>(&mut self, event: E) -> Result<()> where
E: Into<XmlEvent<'a>>,
Auto Trait Implementations
impl<W> RefUnwindSafe for Serializer<W> where
W: RefUnwindSafe,
impl<W> Send for Serializer<W> where
W: Send,
impl<W> Sync for Serializer<W> where
W: Sync,
impl<W> Unpin for Serializer<W> where
W: Unpin,
impl<W> UnwindSafe for Serializer<W> where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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