pub enum HudLayoutError {
InvalidLayout,
DuplicateName,
Capacity,
InsufficientSpace,
}Expand description
Layout failure; no failed operation changes existing reservations.
Variants§
InvalidLayout
Negative/non-finite geometry, empty name, or an unrepresentable transform.
DuplicateName
A reservation already uses this name (compared by string contents).
Capacity
All HUD_REGION_CAPACITY slots are occupied.
InsufficientSpace
A strip or the caller’s minimum content size does not fit. No automatic text shrinking, reservation clipping or minimum-size relaxation occurs.
Trait Implementations§
Source§impl Clone for HudLayoutError
impl Clone for HudLayoutError
Source§fn clone(&self) -> HudLayoutError
fn clone(&self) -> HudLayoutError
Returns a duplicate of the value. Read more
1.0.0 · 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 HudLayoutError
impl Debug for HudLayoutError
Source§impl Display for HudLayoutError
impl Display for HudLayoutError
Source§impl Error for HudLayoutError
impl Error for HudLayoutError
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()
Source§impl PartialEq for HudLayoutError
impl PartialEq for HudLayoutError
impl Copy for HudLayoutError
impl Eq for HudLayoutError
impl StructuralPartialEq for HudLayoutError
Auto Trait Implementations§
impl Freeze for HudLayoutError
impl RefUnwindSafe for HudLayoutError
impl Send for HudLayoutError
impl Sync for HudLayoutError
impl Unpin for HudLayoutError
impl UnwindSafe for HudLayoutError
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