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
type Units
Required Methods
fn measure_with(&self, ctx: &Ctx) -> Self::Units
How large is Self
, given the ctx
?