pub struct Atlas { /* private fields */ }
Implementations§
source§impl Atlas
impl Atlas
pub fn new(width: usize, height: usize) -> Self
pub fn size(&self) -> (usize, usize)
pub fn expand(&mut self, width: usize, height: usize)
pub fn reset(&mut self, width: usize, height: usize)
pub fn add_rect( &mut self, rect_width: usize, rect_height: usize ) -> Option<(usize, usize)>
Auto Trait Implementations§
impl Freeze for Atlas
impl RefUnwindSafe for Atlas
impl Send for Atlas
impl Sync for Atlas
impl Unpin for Atlas
impl UnwindSafe for Atlas
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