#[repr(u8)]pub enum ErrorType {
TextMeasurementFunctionNotProvided = 0,
ArenaCapacityExceeded = 1,
ElementsCapacityExceeded = 2,
TextMeasurementCapacityExceeded = 3,
DuplicateId = 4,
FloatingContainerParentNotFound = 5,
InternalError = 7,
}Variants§
TextMeasurementFunctionNotProvided = 0
Thrown if the text measurement function is never provided to clay and you try using
Clay::text
ArenaCapacityExceeded = 1
ElementsCapacityExceeded = 2
TextMeasurementCapacityExceeded = 3
DuplicateId = 4
Thrown if you are trying to use an id that’s already used by some other element
FloatingContainerParentNotFound = 5
Floating container require a parent, the following error is thrown if the parent is not found
InternalError = 7
Trait Implementations§
impl Copy for ErrorType
impl Eq for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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