[][src]Trait bin_codec::EncodeBe

pub trait EncodeBe {
    fn encode_offset<T>(
        &self,
        target: &mut [u8],
        ctx: &mut T,
        offset: &mut usize,
        bits: usize
    );
fn bits_with_user_define(&self, bits: Option<usize>) -> usize; fn encode<T>(&self, target: &mut [u8], ctx: &mut T) { ... }
fn bits(&self) -> usize { ... } }

Required methods

fn encode_offset<T>(
    &self,
    target: &mut [u8],
    ctx: &mut T,
    offset: &mut usize,
    bits: usize
)

fn bits_with_user_define(&self, bits: Option<usize>) -> usize

Loading content...

Provided methods

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)

fn bits(&self) -> usize

Loading content...

Implementations on Foreign Types

impl EncodeBe for u8[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for i8[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for u16[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for i16[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for u32[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for i32[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for u64[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for i64[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for u128[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for i128[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for f32[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for f64[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl EncodeBe for bool[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl<E: EncodeBe> EncodeBe for Vec<E>[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

impl<E: EncodeBe> EncodeBe for Option<E>[src]

fn encode<T>(&self, target: &mut [u8], ctx: &mut T)[src]

fn bits(&self) -> usize[src]

Loading content...

Implementors

Loading content...