pub struct Subset {
pub version: String,
pub selectors: Selectors,
pub declaration: String,
pub custom_property: String,
pub var: String,
pub properties: Vec<Property>,
pub page: Page,
pub font_face: FontFace,
pub units: Vec<String>,
pub color_names: Vec<String>,
}Expand description
What the engine accepts, from the version that produced it.
Fields§
§version: StringThe engine version this description came from.
selectors: SelectorsWhat a style rule may select.
declaration: StringThe shape of one declaration, in value-definition syntax.
custom_property: StringThe shape of one custom property declaration, in value-definition syntax.
var: StringThe function that puts a custom property’s value in a declaration, in value-definition syntax.
properties: Vec<Property>The properties a style rule may declare.
page: PageThe @page rule.
font_face: FontFaceThe @font-face rule.
units: Vec<String>The units a <length> may carry.
color_names: Vec<String>The names a <color> may be.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Subset
impl<'de> Deserialize<'de> for Subset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Subset
Auto Trait Implementations§
impl Freeze for Subset
impl RefUnwindSafe for Subset
impl Send for Subset
impl Sync for Subset
impl Unpin for Subset
impl UnsafeUnpin for Subset
impl UnwindSafe for Subset
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.