pub struct PropertyRule {
pub name: String,
pub syntax: String,
pub inherits: bool,
pub initial_value: Option<String>,
}Expand description
@property, CSS Properties and Values API 1 §3: a custom property
registered with a syntax, whether it inherits, and an initial value.
A descriptor that’s missing or invalid takes its default, * and
true, as CSSOM has it; the rule registers the property only if its
syntax is * or it has an initial value (PropertyRule::registers).
Fields§
§name: String§syntax: StringThe syntax as written, * for any value.
inherits: bool§initial_value: Option<String>As written.
Implementations§
Source§impl PropertyRule
impl PropertyRule
Trait Implementations§
Source§impl Clone for PropertyRule
impl Clone for PropertyRule
Source§impl Debug for PropertyRule
impl Debug for PropertyRule
Source§impl Display for PropertyRule
impl Display for PropertyRule
Source§impl PartialEq for PropertyRule
impl PartialEq for PropertyRule
impl StructuralPartialEq for PropertyRule
Auto Trait Implementations§
impl Forget for PropertyRule
impl Freeze for PropertyRule
impl Move for PropertyRule
impl RefUnwindSafe for PropertyRule
impl Send for PropertyRule
impl Sync for PropertyRule
impl Unpin for PropertyRule
impl UnsafeUnpin for PropertyRule
impl UnwindSafe for PropertyRule
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