Trait scroll::ctx::MeasureWith [−][src]
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[src]
How large is Self, given the ctx?
Implementations on Foreign Types
impl<Ctx> MeasureWith<Ctx> for [u8][src]
impl<Ctx> MeasureWith<Ctx> for [u8][src]fn measure_with(&self, _ctx: &Ctx) -> usize[src]
Implementors
impl<Ctx, T: AsRef<[u8]>> MeasureWith<Ctx> for T[src]
impl<Ctx, T: AsRef<[u8]>> MeasureWith<Ctx> for T[src]