pub struct JobCache { /* private fields */ }Implementations§
Source§impl JobCache
impl JobCache
pub fn job( &mut self, text: &str, theme: &Theme, font: &FontId, ) -> Arc<LayoutJob>
pub fn galley( &mut self, fonts: &mut FontsView<'_>, pixels_per_point: f32, text: &str, theme: &Theme, font: &FontId, ) -> Arc<Galley>
pub fn laid_out(&self) -> usize
pub fn lexed(&self) -> &Lexed
pub fn hits(&self) -> u64
pub fn misses(&self) -> u64
pub fn relexed(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobCache
impl RefUnwindSafe for JobCache
impl Send for JobCache
impl Sync for JobCache
impl Unpin for JobCache
impl UnsafeUnpin for JobCache
impl UnwindSafe for JobCache
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more