pub struct SimplisticExampleOfConversion<U: Unit> {
pub em: U::Number,
pub ex: U::Number,
pub ch: U::Number,
pub rem: U::Number,
pub vw: U::Number,
pub vh: U::Number,
pub vmin: U::Number,
pub vmax: U::Number,
pub one_hundred_percent_in_absolute_units: U::Number,
pub cssVariablesWithLowerCaseNamesWithoutLeadingDoubleDashToRawCss: HashMap<String, String>,
pub attributesWithLowerCaseNames: HashMap<String, String>,
}
Fields§
§em: U::Number
§ex: U::Number
§ch: U::Number
§rem: U::Number
§vw: U::Number
§vh: U::Number
§vmin: U::Number
§vmax: U::Number
§one_hundred_percent_in_absolute_units: U::Number
§cssVariablesWithLowerCaseNamesWithoutLeadingDoubleDashToRawCss: HashMap<String, String>
§attributesWithLowerCaseNames: HashMap<String, String>
Trait Implementations§
Source§impl<U: Unit> AttributeConversion<U> for SimplisticExampleOfConversion<U>
impl<U: Unit> AttributeConversion<U> for SimplisticExampleOfConversion<U>
Source§fn attributeValue(&self, attribute_lower_case_name: &str) -> (Option<&str>, U)
fn attributeValue(&self, attribute_lower_case_name: &str) -> (Option<&str>, U)
Returns the (value of the attribute, property default) In this simplistic example, since we don’t know th property name, we assume all property defaults are the specification default: https://drafts.csswg.org/css-values-3/#typedef-type-or-unit
Source§impl<U: Clone + Unit> Clone for SimplisticExampleOfConversion<U>
impl<U: Clone + Unit> Clone for SimplisticExampleOfConversion<U>
Source§fn clone(&self) -> SimplisticExampleOfConversion<U>
fn clone(&self) -> SimplisticExampleOfConversion<U>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<U: Unit> CssVariableConversion for SimplisticExampleOfConversion<U>
impl<U: Unit> CssVariableConversion for SimplisticExampleOfConversion<U>
Source§impl<U: Default + Unit> Default for SimplisticExampleOfConversion<U>
impl<U: Default + Unit> Default for SimplisticExampleOfConversion<U>
Source§fn default() -> SimplisticExampleOfConversion<U>
fn default() -> SimplisticExampleOfConversion<U>
Returns the “default value” for a type. Read more
Source§impl<U: Unit> FontRelativeLengthConversion<<U as Unit>::Number> for SimplisticExampleOfConversion<U>
impl<U: Unit> FontRelativeLengthConversion<<U as Unit>::Number> for SimplisticExampleOfConversion<U>
Source§impl<U: Unit> PercentageConversion<<U as Unit>::Number> for SimplisticExampleOfConversion<U>
impl<U: Unit> PercentageConversion<<U as Unit>::Number> for SimplisticExampleOfConversion<U>
fn one_hundred_percent_in_absolute_units(&self) -> U::Number
Auto Trait Implementations§
impl<U> Freeze for SimplisticExampleOfConversion<U>
impl<U> RefUnwindSafe for SimplisticExampleOfConversion<U>
impl<U> Send for SimplisticExampleOfConversion<U>
impl<U> Sync for SimplisticExampleOfConversion<U>
impl<U> Unpin for SimplisticExampleOfConversion<U>
impl<U> UnwindSafe for SimplisticExampleOfConversion<U>
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