Trait scroll::ctx::MeasureWith [−][src]
pub trait MeasureWith<Ctx> {
fn measure_with(&self, ctx: &Ctx) -> usize;
}
Expand description
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
fn measure_with(&self, ctx: &Ctx) -> usize
How large is Self
, given the ctx
?