style/values/computed/rect.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5//! Computed types for CSS borders.
6
7use crate::typed_om::{ToTyped, TypedValue};
8use crate::values::computed::length::NonNegativeLengthOrNumber;
9use crate::values::generics::rect::Rect;
10use thin_vec::ThinVec;
11
12/// A specified rectangle made of four `<length-or-number>` values.
13pub type NonNegativeLengthOrNumberRect = Rect<NonNegativeLengthOrNumber>;
14
15impl ToTyped for NonNegativeLengthOrNumberRect {
16 fn to_typed(&self, _dest: &mut ThinVec<TypedValue>) -> Result<(), ()> {
17 return Err(());
18 }
19}