pub struct WidthCache { /* private fields */ }
Implementations§
Source§impl WidthCache
impl WidthCache
pub fn new() -> WidthCache
Sourcepub fn resolve(&self, tok: Token) -> f64
pub fn resolve(&self, tok: Token) -> f64
Resolve a previously obtained token into a width value.
Sourcepub fn batch_req(self: &mut WidthCache) -> WidthBatchReq<'_>
pub fn batch_req(self: &mut WidthCache) -> WidthBatchReq<'_>
Create a new batch of requests.
Auto Trait Implementations§
impl Freeze for WidthCache
impl RefUnwindSafe for WidthCache
impl Send for WidthCache
impl Sync for WidthCache
impl Unpin for WidthCache
impl UnwindSafe for WidthCache
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