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

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

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

Associated Types

Required Methods

How large is Self, given the ctx?

Implementations on Foreign Types

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

[src]

Implementors