1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
use crate::style::selectag::StyleSelectag; use super::StyleSelectorAppend; impl<S,T,E> StyleSelectorAppend<&'_ S,E> for T where T: StyleSelectorAppend<S,E>, S: StyleSelectag<E>, { #[inline] fn append(&mut self, selectag: &S) { self.append((*selectag).clone()) } } impl<'a,S,T,E> StyleSelectorAppend<&'a [S],E> for T where T: StyleSelectorAppend<S,E>, S: StyleSelectag<E>, { #[inline] fn append(&mut self, selectag: &[S]) { for i in selectag { self.append((*i).clone()); } } }