[−][src]Struct nine::ser::AccountingStructSerializer
A struct serializer that counts the byte size of everything serialized so far.
Trait Implementations
impl<'ser, W: Debug + 'ser + Write + Seek> Debug for AccountingStructSerializer<'ser, W>
[src]
impl<'ser, W: 'ser + Write + Seek> SerializeTuple for AccountingStructSerializer<'ser, W>
[src]
type Ok = u32
Must match the Ok
type of our Serializer
.
type Error = SerError
Must match the Error
type of our Serializer
.
fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), Self::Error> where
T: Serialize,
[src]
T: Serialize,
fn end(self) -> Result<Self::Ok, Self::Error>
[src]
impl<'ser, W: 'ser + Write + Seek> SerializeStruct for AccountingStructSerializer<'ser, W>
[src]
type Ok = u32
Must match the Ok
type of our Serializer
.
type Error = SerError
Must match the Error
type of our Serializer
.
fn serialize_field<T: ?Sized>(
&mut self,
_key: &'static str,
value: &T
) -> Result<(), Self::Error> where
T: Serialize,
[src]
&mut self,
_key: &'static str,
value: &T
) -> Result<(), Self::Error> where
T: Serialize,
fn end(self) -> Result<Self::Ok, Self::Error>
[src]
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>
[src]
impl<'ser, W: 'ser + Write + Seek> SerializeTupleStruct for AccountingStructSerializer<'ser, W>
[src]
Auto Trait Implementations
impl<'ser, W> Send for AccountingStructSerializer<'ser, W> where
W: Send,
W: Send,
impl<'ser, W> Sync for AccountingStructSerializer<'ser, W> where
W: Sync,
W: Sync,
impl<'ser, W> Unpin for AccountingStructSerializer<'ser, W>
impl<'ser, W> !UnwindSafe for AccountingStructSerializer<'ser, W>
impl<'ser, W> RefUnwindSafe for AccountingStructSerializer<'ser, W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,