[−][src]Struct bytecodec::fixnum::F64beEncoder
Encoder which encodes f64 values by big-endian byte order.
Examples
use bytecodec::EncodeExt; use bytecodec::fixnum::F64beEncoder; use bytecodec::io::IoEncodeExt; let mut output = Vec::new(); let mut encoder = F64beEncoder::with_item(123.456).unwrap(); encoder.encode_all(&mut output).unwrap(); assert_eq!(output, [64, 94, 221, 47, 26, 159, 190, 119]);
Methods
impl F64beEncoder[src]
Trait Implementations
impl Encode for F64beEncoder[src]
type Item = f64
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>[src]
fn start_encoding(&mut self, item: Self::Item) -> Result<()>[src]
fn requiring_bytes(&self) -> ByteCount[src]
fn is_idle(&self) -> bool[src]
impl SizedEncode for F64beEncoder[src]
fn exact_requiring_bytes(&self) -> u64[src]
impl Default for F64beEncoder[src]
fn default() -> F64beEncoder[src]
impl Debug for F64beEncoder[src]
Auto Trait Implementations
impl Send for F64beEncoder
impl Unpin for F64beEncoder
impl Sync for F64beEncoder
impl UnwindSafe for F64beEncoder
impl RefUnwindSafe for F64beEncoder
Blanket Implementations
impl<T> IoEncodeExt for T where
T: Encode, [src]
T: Encode,
fn encode_to_write_buf<B>(&mut self, buf: &mut WriteBuf<B>) -> Result<()> where
B: AsMut<[u8]>, [src]
B: AsMut<[u8]>,
fn encode_all<W: Write>(&mut self, writer: W) -> Result<()>[src]
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> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,