pub struct CssUnsignedInteger(/* private fields */);
Expand description
A CSS integer value similar to u32
Trait Implementations§
Source§impl Add for CssUnsignedInteger
impl Add for CssUnsignedInteger
Source§type Output = CssUnsignedInteger
type Output = CssUnsignedInteger
The resulting type after applying the
+
operator.Source§impl AddAssign for CssUnsignedInteger
impl AddAssign for CssUnsignedInteger
Source§fn add_assign(&mut self, rhs: CssUnsignedInteger)
fn add_assign(&mut self, rhs: CssUnsignedInteger)
Performs the
+=
operation. Read moreSource§impl AppUnitsPer for CssUnsignedInteger
impl AppUnitsPer for CssUnsignedInteger
Source§const AppUnitsPerPX: Self
const AppUnitsPerPX: Self
Number of app units per pixel
Source§const AppUnitsPerIN: Self
const AppUnitsPerIN: Self
Number of app units per inch
Source§const AppUnitsPerCM: Self
const AppUnitsPerCM: Self
Number of app units per centimeter
Source§const AppUnitsPerMM: Self
const AppUnitsPerMM: Self
Number of app units per millimeter
Source§const AppUnitsPerQ: Self
const AppUnitsPerQ: Self
Number of app units per quarter
Source§const AppUnitsPerPT: Self
const AppUnitsPerPT: Self
Number of app units per point
Source§const AppUnitsPerPC: Self
const AppUnitsPerPC: Self
Number of app units per pica
Source§impl Clone for CssUnsignedInteger
impl Clone for CssUnsignedInteger
Source§fn clone(&self) -> CssUnsignedInteger
fn clone(&self) -> CssUnsignedInteger
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 CssNumber for CssUnsignedInteger
impl CssNumber for CssUnsignedInteger
const Zero: Self
const One: Self
const Maximum: Self
const Minimum: Self
const DotsPerInch: Self
const CentimetresPerInch: Self
fn as_f32(&self) -> f32
fn as_u32(&self) -> u32
fn round(self) -> Self
fn abs(self) -> Self
fn new(value: f32) -> Result<Self, CssNumberConversionError>
fn parseNumber<'i>( value: f32, int_value: Option<i32>, ) -> Result<Self, ParseError<'i, CustomParseError<'i>>>
fn clamp(value: f32) -> Self
fn can_be_negative() -> bool
Source§impl CssNumberNewType<CssUnsignedInteger> for CssUnsignedInteger
impl CssNumberNewType<CssUnsignedInteger> for CssUnsignedInteger
fn to_f32(&self) -> f32
fn as_CssNumber(&self) -> &CssUnsignedInteger
fn is_zero(&self) -> bool
fn is_positive(&self) -> bool
fn is_negative(&self) -> bool
fn is_zero_or_positive(&self) -> bool
fn is_zero_or_negative(&self) -> bool
fn to_CssNumber(&self) -> Number
Source§impl Debug for CssUnsignedInteger
impl Debug for CssUnsignedInteger
Source§impl Default for CssUnsignedInteger
impl Default for CssUnsignedInteger
Source§impl Deref for CssUnsignedInteger
impl Deref for CssUnsignedInteger
Source§impl Display for CssUnsignedInteger
impl Display for CssUnsignedInteger
Source§impl Div for CssUnsignedInteger
impl Div for CssUnsignedInteger
Source§type Output = CssUnsignedInteger
type Output = CssUnsignedInteger
The resulting type after applying the
/
operator.Source§impl DivAssign for CssUnsignedInteger
impl DivAssign for CssUnsignedInteger
Source§fn div_assign(&mut self, rhs: CssUnsignedInteger)
fn div_assign(&mut self, rhs: CssUnsignedInteger)
Performs the
/=
operation. Read moreSource§impl From<u16> for CssUnsignedInteger
impl From<u16> for CssUnsignedInteger
Source§fn from(small: u16) -> CssUnsignedInteger
fn from(small: u16) -> CssUnsignedInteger
Converts to this type from the input type.
Source§impl From<u32> for CssUnsignedInteger
impl From<u32> for CssUnsignedInteger
Source§fn from(small: u32) -> CssUnsignedInteger
fn from(small: u32) -> CssUnsignedInteger
Converts to this type from the input type.
Source§impl From<u8> for CssUnsignedInteger
impl From<u8> for CssUnsignedInteger
Source§fn from(small: u8) -> CssUnsignedInteger
fn from(small: u8) -> CssUnsignedInteger
Converts to this type from the input type.
Source§impl FromStr for CssUnsignedInteger
impl FromStr for CssUnsignedInteger
Source§impl Hash for CssUnsignedInteger
impl Hash for CssUnsignedInteger
Source§impl Mul for CssUnsignedInteger
impl Mul for CssUnsignedInteger
Source§type Output = CssUnsignedInteger
type Output = CssUnsignedInteger
The resulting type after applying the
*
operator.Source§impl MulAssign for CssUnsignedInteger
impl MulAssign for CssUnsignedInteger
Source§fn mul_assign(&mut self, rhs: CssUnsignedInteger)
fn mul_assign(&mut self, rhs: CssUnsignedInteger)
Performs the
*=
operation. Read moreSource§impl Neg for CssUnsignedInteger
impl Neg for CssUnsignedInteger
Source§impl Ord for CssUnsignedInteger
impl Ord for CssUnsignedInteger
Source§fn cmp(&self, other: &CssUnsignedInteger) -> Ordering
fn cmp(&self, other: &CssUnsignedInteger) -> 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 CssUnsignedInteger
impl PartialEq for CssUnsignedInteger
Source§impl PartialOrd for CssUnsignedInteger
impl PartialOrd for CssUnsignedInteger
Source§impl Rem for CssUnsignedInteger
impl Rem for CssUnsignedInteger
Source§type Output = CssUnsignedInteger
type Output = CssUnsignedInteger
The resulting type after applying the
%
operator.Source§impl RemAssign for CssUnsignedInteger
impl RemAssign for CssUnsignedInteger
Source§fn rem_assign(&mut self, rhs: CssUnsignedInteger)
fn rem_assign(&mut self, rhs: CssUnsignedInteger)
Performs the
%=
operation. Read moreSource§impl Sub for CssUnsignedInteger
impl Sub for CssUnsignedInteger
Source§type Output = CssUnsignedInteger
type Output = CssUnsignedInteger
The resulting type after applying the
-
operator.Source§impl SubAssign for CssUnsignedInteger
impl SubAssign for CssUnsignedInteger
Source§fn sub_assign(&mut self, rhs: CssUnsignedInteger)
fn sub_assign(&mut self, rhs: CssUnsignedInteger)
Performs the
-=
operation. Read moreSource§impl ToCss for CssUnsignedInteger
impl ToCss for CssUnsignedInteger
Source§impl Unit for CssUnsignedInteger
impl Unit for CssUnsignedInteger
const HasDimension: bool = false
type Number = CssUnsignedInteger
fn parse_one_outside_calc_function<'i, 't>( context: &ParserContext, input: &mut Parser<'i, 't>, ) -> Result<CalculablePropertyValue<Self>, ParseError<'i, CustomParseError<'i>>>
fn parse_one_inside_calc_function<'i, 't>( context: &ParserContext, input: &mut Parser<'i, 't>, ) -> Result<Either<CalculablePropertyValue<Self>, CalcExpression<Self>>, ParseError<'i, CustomParseError<'i>>>
fn to_canonical_dimension_value<Conversion: FontRelativeLengthConversion<Self::Number> + ViewportPercentageLengthConversion<Self::Number> + PercentageConversion<Self::Number>>( &self, _conversion: &Conversion, ) -> Self::Number
fn from_raw_css_for_var_expression_evaluation( value: &str, _is_not_in_page_rule: bool, ) -> Option<Self>
fn to_canonical_dimension(self) -> Self
fn number_inside_calc_function<'i>( value: f32, ) -> Result<Either<CalculablePropertyValue<Self>, CalcExpression<Self>>, ParseError<'i, CustomParseError<'i>>>
impl Copy for CssUnsignedInteger
impl Eq for CssUnsignedInteger
impl StructuralPartialEq for CssUnsignedInteger
Auto Trait Implementations§
impl Freeze for CssUnsignedInteger
impl RefUnwindSafe for CssUnsignedInteger
impl Send for CssUnsignedInteger
impl Sync for CssUnsignedInteger
impl Unpin for CssUnsignedInteger
impl UnwindSafe for CssUnsignedInteger
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