pub struct AtlasSession { /* private fields */ }Implementations§
Source§impl AtlasSession
impl AtlasSession
pub fn new(cfg: RuntimeConfig) -> Self
pub fn append( &mut self, key: String, w: u32, h: u32, ) -> Result<RuntimePlacement>
pub fn evict(&mut self, page_id: PageId, key: &str) -> bool
pub fn snapshot_atlas(&self) -> Result<Atlas>
Sourcepub fn get_frame(&self, key: &str) -> Option<RuntimePlacement>
pub fn get_frame(&self, key: &str) -> Option<RuntimePlacement>
Finds the resolved runtime placement for a key.
Sourcepub fn get_reserved_slot(&self, key: &str) -> Option<(PageId, Rect)>
pub fn get_reserved_slot(&self, key: &str) -> Option<(PageId, Rect)>
Finds the physical allocation reserved for a key.
Sourcepub fn evict_by_key(&mut self, key: &str) -> bool
pub fn evict_by_key(&mut self, key: &str) -> bool
Evicts a texture by key without requiring its page identity.
pub fn contains(&self, key: &str) -> bool
pub fn keys(&self) -> Vec<&str>
pub fn texture_count(&self) -> usize
pub fn stats(&self) -> RuntimeStats
Auto Trait Implementations§
impl Freeze for AtlasSession
impl RefUnwindSafe for AtlasSession
impl Send for AtlasSession
impl Sync for AtlasSession
impl Unpin for AtlasSession
impl UnsafeUnpin for AtlasSession
impl UnwindSafe for AtlasSession
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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