pub type PositiveInteger = GreaterThanOrEqualToOne<Integer>;Expand description
An Integer which is >= 1. For calc expressions that couldn’t be resolved at parse time, this value is clamped to 1 at computed-value time.
Aliased Type§
#[repr(transparent)]pub struct PositiveInteger(pub Integer);Tuple Fields§
§0: IntegerTrait Implementations§
Source§impl Parse for PositiveInteger
impl Parse for PositiveInteger
Source§fn parse(
context: &ParserContext<'_>,
input: &mut Parser<'_>,
) -> Result<Self, ParseError>
fn parse( context: &ParserContext<'_>, input: &mut Parser<'_>, ) -> Result<Self, ParseError>
Parse a value of this type. Read more