lewp_css/domain/has_css_rules.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 super::{CssRule, CssRules};
5
6pub trait HasCssRules {
7 fn css_rules(&self) -> &CssRules;
8
9 fn css_rules_mut(&mut self) -> &mut CssRules;
10
11 fn css_rules_slice(&self) -> &[CssRule];
12
13 fn css_rules_vec(&self) -> &Vec<CssRule>;
14
15 fn css_rules_vec_mut(&mut self) -> &mut Vec<CssRule>;
16}