pub enum AtlasError {
NoSpaceAvailable(AtlasSpaceDiagnostics),
AtlasLimitReached {
max_atlases: usize,
diagnostics: AtlasSpaceDiagnostics,
},
TextureTooLarge {
width: u32,
height: u32,
max_width: u32,
max_height: u32,
},
AtlasNotFound(AtlasId),
}Expand description
Errors that can occur during atlas operations.
Variants§
NoSpaceAvailable(AtlasSpaceDiagnostics)
No space available in any atlas.
AtlasLimitReached
Maximum number of atlases reached.
Fields
§
diagnostics: AtlasSpaceDiagnosticsDetails about the failed allocation, when available.
TextureTooLarge
The requested texture size is too large for any atlas.
Fields
AtlasNotFound(AtlasId)
The specified atlas was not found.
Trait Implementations§
Source§impl Clone for AtlasError
impl Clone for AtlasError
Source§fn clone(&self) -> AtlasError
fn clone(&self) -> AtlasError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AtlasError
impl Debug for AtlasError
Source§impl Display for AtlasError
impl Display for AtlasError
Source§impl Error for AtlasError
impl Error for AtlasError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AtlasError
impl RefUnwindSafe for AtlasError
impl Send for AtlasError
impl Sync for AtlasError
impl Unpin for AtlasError
impl UnsafeUnpin for AtlasError
impl UnwindSafe for AtlasError
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