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<CSSPixelLength>, NonNegative<f32>>, pub GenericLengthOrNumber<NonNegative<CSSPixelLength>, NonNegative<f32>>, pub GenericLengthOrNumber<NonNegative<CSSPixelLength>, NonNegative<f32>>, pub GenericLengthOrNumber<NonNegative<CSSPixelLength>, NonNegative<f32>>);

Tuple Fields§

§0: GenericLengthOrNumber<NonNegative<CSSPixelLength>, NonNegative<f32>>§1: GenericLengthOrNumber<NonNegative<CSSPixelLength>, NonNegative<f32>>§2: GenericLengthOrNumber<NonNegative<CSSPixelLength>, NonNegative<f32>>§3: GenericLengthOrNumber<NonNegative<CSSPixelLength>, NonNegative<f32>>

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