Skip to main content

lewp_css/domain/
has_property_declarations.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 crate::domain::properties::{
5    HasImportance,
6    PropertyDeclaration,
7    PropertyDeclarations,
8};
9
10pub trait HasPropertyDeclarations<I: HasImportance> {
11    fn property_declarations(&self) -> &PropertyDeclarations<I>;
12
13    fn property_declarations_mut(&mut self) -> &mut PropertyDeclarations<I>;
14
15    fn property_declarations_slice(&self) -> &[PropertyDeclaration<I>];
16
17    fn property_declarations_vec(&self) -> &Vec<PropertyDeclaration<I>>;
18
19    fn property_declarations_vec_mut(
20        &mut self,
21    ) -> &mut Vec<PropertyDeclaration<I>>;
22}