Struct bincode::Serializer [−][src]
An Serializer that encodes values directly into a Writer.
The specified byte-order will impact the endianness that is used during the encoding.
This struct should not be used often.
For most cases, prefer the encode_into
function.
Implementations
impl<W: Write, O: Options> Serializer<W, O>
[src][−]
pub fn new(w: W, options: O) -> Serializer<W, O>
[src][−]
Creates a new Serializer with the given Write
r.
Trait Implementations
impl<'a, W: Write, O: Options> Serializer for &'a mut Serializer<W, O>
[src][+]
Auto Trait Implementations
impl<W, O> RefUnwindSafe for Serializer<W, O> where
O: RefUnwindSafe,
W: RefUnwindSafe,
O: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, O> Send for Serializer<W, O> where
O: Send,
W: Send,
O: Send,
W: Send,
impl<W, O> Sync for Serializer<W, O> where
O: Sync,
W: Sync,
O: Sync,
W: Sync,
impl<W, O> Unpin for Serializer<W, O> where
O: Unpin,
W: Unpin,
O: Unpin,
W: Unpin,
impl<W, O> UnwindSafe for Serializer<W, O> where
O: UnwindSafe,
W: UnwindSafe,
O: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,