Struct yaserde::ser::Serializer
source · pub struct Serializer<W: Write> { /* private fields */ }
Implementations§
source§impl<W: Write> Serializer<W>
impl<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<()>
Auto Trait Implementations§
impl<W> Freeze for Serializer<W>where
W: Freeze,
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§
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