lewp_css/domain/at_rules/media/range.rs
1// This file is part of css. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/css/master/COPYRIGHT. No part of predicator, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
2// Copyright © 2017 The developers of css. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/css/master/COPYRIGHT.
3
4use cssparser::ToCss;
5
6/// An enumeration that represents a ranged value.
7#[derive(Debug, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
8pub enum Range<T: ToCss> {
9 /// At least the inner value.
10 AtLeast(T),
11
12 /// At most the inner value.
13 AtMost(T),
14
15 /// Exactly the inner value.
16 Exact(T),
17}