pub struct Rule<'a> {
pub property: Cow<'a, str>,
pub value: Cow<'a, str>,
}Expand description
A CSS rule, of the form xxx: yyy (delimited by ; in a ruleset).
Fields§
§property: Cow<'a, str>§value: Cow<'a, str>Trait Implementations§
impl<'a> Eq for Rule<'a>
impl<'a> StructuralPartialEq for Rule<'a>
Auto Trait Implementations§
impl<'a> Freeze for Rule<'a>
impl<'a> RefUnwindSafe for Rule<'a>
impl<'a> Send for Rule<'a>
impl<'a> Sync for Rule<'a>
impl<'a> Unpin for Rule<'a>
impl<'a> UnwindSafe for Rule<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more