pub enum CssPixelValueParseError<'a> {
EmptyString,
NoValueGiven(&'a str, SizeMetric),
ValueParseErr(ParseFloatError, &'a str),
InvalidPixelValue(&'a str),
}Variants§
EmptyString
NoValueGiven(&'a str, SizeMetric)
ValueParseErr(ParseFloatError, &'a str)
InvalidPixelValue(&'a str)
Implementations§
Source§impl<'a> CssPixelValueParseError<'a>
impl<'a> CssPixelValueParseError<'a>
pub fn to_contained(&self) -> CssPixelValueParseErrorOwned
Trait Implementations§
Source§impl<'a> Clone for CssPixelValueParseError<'a>
impl<'a> Clone for CssPixelValueParseError<'a>
Source§fn clone(&self) -> CssPixelValueParseError<'a>
fn clone(&self) -> CssPixelValueParseError<'a>
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<'a> Debug for CssPixelValueParseError<'a>
impl<'a> Debug for CssPixelValueParseError<'a>
Source§impl<'a> Display for CssPixelValueParseError<'a>
impl<'a> Display for CssPixelValueParseError<'a>
Source§impl<'a> From<CssPixelValueParseError<'a>> for ColumnRuleWidthParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for ColumnRuleWidthParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for ColumnWidthParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for ColumnWidthParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for CssBorderRadiusParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for CssBorderRadiusParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for CssBorderSideParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for CssBorderSideParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for CssParsingError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for CssParsingError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for CssShadowParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for CssShadowParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for CssStyleBlurParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for CssStyleBlurParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for CssStyleFilterOffsetParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for CssStyleFilterOffsetParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for CssStyleFontSizeParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for CssStyleFontSizeParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for CssStylePerspectiveOriginParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for CssStylePerspectiveOriginParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for CssStyleTransformOriginParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for CssStyleTransformOriginParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for CssStyleTransformParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for CssStyleTransformParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutHeightParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutHeightParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutInsetBottomParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutInsetBottomParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutLeftParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutLeftParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutMarginParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutMarginParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutMaxHeightParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutMaxHeightParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutMaxWidthParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutMaxWidthParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutMinHeightParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutMinHeightParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutMinWidthParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutMinWidthParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutPaddingParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutPaddingParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutRightParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutRightParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutTopParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutTopParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for LayoutWidthParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for LayoutWidthParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for StyleBorderBottomLeftRadiusParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for StyleBorderBottomLeftRadiusParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for StyleBorderBottomRightRadiusParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for StyleBorderBottomRightRadiusParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for StyleBorderTopLeftRadiusParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for StyleBorderTopLeftRadiusParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for StyleBorderTopRightRadiusParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for StyleBorderTopRightRadiusParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for StyleLetterSpacingParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for StyleLetterSpacingParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for StyleTabWidthParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for StyleTabWidthParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for StyleTextIndentParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for StyleTextIndentParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CssPixelValueParseError<'a>> for StyleWordSpacingParseError<'a>
impl<'a> From<CssPixelValueParseError<'a>> for StyleWordSpacingParseError<'a>
Source§fn from(e: CssPixelValueParseError<'a>) -> Self
fn from(e: CssPixelValueParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for CssPixelValueParseError<'a>
impl<'a> PartialEq for CssPixelValueParseError<'a>
impl<'a> StructuralPartialEq for CssPixelValueParseError<'a>
Auto Trait Implementations§
impl<'a> Freeze for CssPixelValueParseError<'a>
impl<'a> RefUnwindSafe for CssPixelValueParseError<'a>
impl<'a> Send for CssPixelValueParseError<'a>
impl<'a> Sync for CssPixelValueParseError<'a>
impl<'a> Unpin for CssPixelValueParseError<'a>
impl<'a> UnwindSafe for CssPixelValueParseError<'a>
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