[][src]Trait scroll::ctx::MeasureWith

pub trait MeasureWith<Ctx> {
    fn measure_with(&self, ctx: &Ctx) -> usize;
}

A trait for measuring how large something is; for a byte sequence, it will be its length.

Required methods

fn measure_with(&self, ctx: &Ctx) -> usize

How large is Self, given the ctx?

Loading content...

Implementations on Foreign Types

impl<Ctx> MeasureWith<Ctx> for [u8][src]

Loading content...

Implementors

impl<Ctx, T: AsRef<[u8]>> MeasureWith<Ctx> for T[src]

Loading content...