Trait scroll::ctx::MeasureWith
source · pub trait MeasureWith<Ctx> {
// Required method
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§
sourcefn measure_with(&self, ctx: &Ctx) -> usize
fn measure_with(&self, ctx: &Ctx) -> usize
How large is Self
, given the ctx
?