pub struct BumpEstimator { /* private fields */ }Available on crate feature
bump_estimate only.Implementations§
Source§impl BumpEstimator
impl BumpEstimator
pub fn new() -> Self
pub fn reset(&mut self)
Sourcepub fn append(&mut self, other: &Self, transform: Option<&Transform>)
pub fn append(&mut self, other: &Self, transform: Option<&Transform>)
Combine the counts of this estimator with other after applying an optional transform.
pub fn count_path( &mut self, path: impl Iterator<Item = PathEl>, t: &Transform, stroke: Option<&Stroke>, )
Sourcepub fn tally(&self, transform: Option<&Transform>) -> BumpAllocatorMemory
pub fn tally(&self, transform: Option<&Transform>) -> BumpAllocatorMemory
Produce the final total, applying an optional transform to all content.
Trait Implementations§
Source§impl Clone for BumpEstimator
impl Clone for BumpEstimator
Auto Trait Implementations§
impl Freeze for BumpEstimator
impl RefUnwindSafe for BumpEstimator
impl Send for BumpEstimator
impl Sync for BumpEstimator
impl Unpin for BumpEstimator
impl UnsafeUnpin for BumpEstimator
impl UnwindSafe for BumpEstimator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more