[][src]Struct xbinary::XBWrite

pub struct XBWrite { /* fields omitted */ }

Implementations

impl XBWrite[src]

pub fn new() -> XBWrite[src]

pub fn len(&self) -> usize[src]

pub fn reset(&mut self)[src]

pub fn get_position(&self) -> usize[src]

pub fn set_position(&mut self, position: usize) -> bool[src]

pub fn check_resize(&mut self, put_len: usize) -> usize[src]

pub fn write(&mut self, buff: &[u8])[src]

pub fn write_bit7_len(&mut self, buff: &[u8])[src]

pub fn write_u32_len(&mut self, buff: &[u8])[src]

pub fn write_string(&mut self, str: &str)[src]

pub fn write_string_bit7_len(&mut self, str: &str)[src]

pub fn write_string_u32_le_len(&mut self, str: &str)[src]

pub fn bit7_write_u16(&mut self, value: u16)[src]

pub fn bit7_write_i16(&mut self, value: i16)[src]

pub fn bit7_write_u32(&mut self, value: u32)[src]

pub fn bit7_write_i32(&mut self, value: i32)[src]

pub fn bit7_write_u64(&mut self, value: u64)[src]

pub fn bit7_write_i64(&mut self, value: i64)[src]

pub fn to_vec(&self) -> Vec<u8>[src]

pub fn flush(self) -> BytesMut[src]

Trait Implementations

impl AsRef<[u8]> for XBWrite[src]

impl BufMut for XBWrite[src]

impl Debug for XBWrite[src]

impl Deref for XBWrite[src]

type Target = [u8]

The resulting type after dereferencing.

Auto Trait Implementations

impl RefUnwindSafe for XBWrite

impl Send for XBWrite

impl Sync for XBWrite

impl Unpin for XBWrite

impl UnwindSafe for XBWrite

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<B> BufMutExt for B where
    B: BufMut + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.