pub struct WrittenRule {
pub selectors: Vec<String>,
pub declarations: Vec<Written>,
pub position: SheetPosition,
}Expand description
One style rule as it was written.
Fields§
§selectors: Vec<String>Each selector of the list, as CSS.
declarations: Vec<Written>The declarations the parser accepted, in the order they were written.
position: SheetPositionWhere the rule begins.
Trait Implementations§
Source§impl Clone for WrittenRule
impl Clone for WrittenRule
Source§fn clone(&self) -> WrittenRule
fn clone(&self) -> WrittenRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WrittenRule
impl Debug for WrittenRule
Source§impl PartialEq for WrittenRule
impl PartialEq for WrittenRule
impl StructuralPartialEq for WrittenRule
Auto Trait Implementations§
impl Freeze for WrittenRule
impl RefUnwindSafe for WrittenRule
impl Send for WrittenRule
impl Sync for WrittenRule
impl Unpin for WrittenRule
impl UnsafeUnpin for WrittenRule
impl UnwindSafe for WrittenRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.