pub type NonNegativeNumberOrPercentage = NonNegative<NumberOrPercentage>;Expand description
A non-negative
Aliased Type§
#[repr(transparent)]pub struct NonNegativeNumberOrPercentage(pub NumberOrPercentage);Tuple Fields§
§0: NumberOrPercentageImplementations§
Source§impl NonNegativeNumberOrPercentage
impl NonNegativeNumberOrPercentage
Sourcepub fn hundred_percent() -> Self
pub fn hundred_percent() -> Self
Returns the 100% value.
Sourcepub fn new_number(n: f32) -> Self
pub fn new_number(n: f32) -> Self
Return a particular number.
Trait Implementations§
Source§impl Parse for NonNegativeNumberOrPercentage
impl Parse for NonNegativeNumberOrPercentage
Source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more