Struct Serializer
pub struct Serializer<W: Write> { /* private fields */ }
A serializer that knows how to serialize types implementing Serialize as JSON5.
Implementations
impl<W: Write> Serializer<W>
fn new(w: W) -> Self
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> UnsafeUnpin for Serializer<W>
where
W: UnsafeUnpin,
impl<W> UnwindSafe for Serializer<W>
where
W: UnwindSafe,
Blanket Implementations
impl<T> Any for Serializer<W>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Serializer<W>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Serializer<W>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Serializer<W>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Serializer<W>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Serializer<W>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Serializer<W>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>