pub enum PickerError {
EmptyFontFamily,
InvalidFontSize {
size_pt: f32,
},
InvalidSizeRange {
min: f32,
max: f32,
},
TooManyCustomColors {
count: usize,
max: usize,
},
}Expand description
Error returned by the shared picker-dialog validation rules.
Variants§
EmptyFontFamily
A font descriptor has no family name.
InvalidFontSize
A font size is not a finite, positive number of points.
InvalidSizeRange
A font dialog’s minimum size is above its maximum size.
TooManyCustomColors
The custom colour palette exceeds MAX_CUSTOM_COLORS.
Trait Implementations§
Source§impl Clone for PickerError
impl Clone for PickerError
Source§impl Debug for PickerError
impl Debug for PickerError
Source§impl Display for PickerError
impl Display for PickerError
Source§impl Error for PickerError
impl Error for PickerError
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 PickerError
impl PartialEq for PickerError
impl StructuralPartialEq for PickerError
Auto Trait Implementations§
impl Forget for PickerError
impl Freeze for PickerError
impl Move for PickerError
impl RefUnwindSafe for PickerError
impl Send for PickerError
impl Sync for PickerError
impl Unpin for PickerError
impl UnsafeUnpin for PickerError
impl UnwindSafe for PickerError
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