Skip to main content

NonNegativeLengthOrNumberRect

Type Alias NonNegativeLengthOrNumberRect 

Source
pub type NonNegativeLengthOrNumberRect = Rect<NonNegativeLengthOrNumber>;
Expand description

A specified rectangle made of four <length-or-number> values.

Aliased Type§

#[repr(C)]
pub struct NonNegativeLengthOrNumberRect(pub GenericLengthOrNumber<NonNegative<Length>, NonNegative<Number>>, pub GenericLengthOrNumber<NonNegative<Length>, NonNegative<Number>>, pub GenericLengthOrNumber<NonNegative<Length>, NonNegative<Number>>, pub GenericLengthOrNumber<NonNegative<Length>, NonNegative<Number>>);

Tuple Fields§

§0: GenericLengthOrNumber<NonNegative<Length>, NonNegative<Number>>§1: GenericLengthOrNumber<NonNegative<Length>, NonNegative<Number>>§2: GenericLengthOrNumber<NonNegative<Length>, NonNegative<Number>>§3: GenericLengthOrNumber<NonNegative<Length>, NonNegative<Number>>

Trait Implementations§

Source§

impl ToTyped for NonNegativeLengthOrNumberRect

Source§

fn to_typed(&self, dest: &mut ThinVec<TypedValue>) -> Result<(), ()>

Attempt to convert self into one or more TypedValue items. Read more
Source§

fn to_typed_value(&self) -> Option<TypedValue>

Attempt to convert self into a TypedValue. Read more
Source§

fn to_numeric_value(&self) -> Option<NumericValue>

Attempt to convert self into a NumericValue. Read more
Source§

fn to_typed_value_list(&self) -> Option<TypedValueList>

Attempt to convert self into a TypedValueList. Read more