pub enum CssNumberConversionError {
InfinityIsNotAllowed,
NotANumberIsNotAllowed,
NegativeNumberMayNotBeAllowed,
FloatingPointNumberMayNotBeAllowed,
}
Variants§
InfinityIsNotAllowed
NotANumberIsNotAllowed
NegativeNumberMayNotBeAllowed
FloatingPointNumberMayNotBeAllowed
Trait Implementations§
Source§impl Clone for CssNumberConversionError
impl Clone for CssNumberConversionError
Source§fn clone(&self) -> CssNumberConversionError
fn clone(&self) -> CssNumberConversionError
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 CssNumberConversionError
impl Debug for CssNumberConversionError
Source§impl Display for CssNumberConversionError
impl Display for CssNumberConversionError
Source§impl Error for CssNumberConversionError
impl Error for CssNumberConversionError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<CssNumberConversionError> for UnitFromStrError
impl From<CssNumberConversionError> for UnitFromStrError
Source§fn from(error: CssNumberConversionError) -> Self
fn from(error: CssNumberConversionError) -> Self
Converts to this type from the input type.
Source§impl Hash for CssNumberConversionError
impl Hash for CssNumberConversionError
Source§impl Ord for CssNumberConversionError
impl Ord for CssNumberConversionError
Source§fn cmp(&self, other: &CssNumberConversionError) -> Ordering
fn cmp(&self, other: &CssNumberConversionError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CssNumberConversionError
impl PartialEq for CssNumberConversionError
Source§impl PartialOrd for CssNumberConversionError
impl PartialOrd for CssNumberConversionError
impl Copy for CssNumberConversionError
impl Eq for CssNumberConversionError
impl StructuralPartialEq for CssNumberConversionError
Auto Trait Implementations§
impl Freeze for CssNumberConversionError
impl RefUnwindSafe for CssNumberConversionError
impl Send for CssNumberConversionError
impl Sync for CssNumberConversionError
impl Unpin for CssNumberConversionError
impl UnwindSafe for CssNumberConversionError
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