[−][src]Struct seed::dom_types::Style
Handle Style separately from Attrs, since it commonly involves multiple parts, and has a different semantic meaning.
Fields
vals: HashMap<String, String>
Methods
impl Style
[src]
pub fn new(vals: HashMap<String, String>) -> Self
[src]
pub fn empty() -> Self
[src]
pub fn add(&mut self, key: &str, val: &str)
[src]
pub fn merge(&mut self, other: Self)
[src]
Combine with another Style; if there's a conflict, use the other one.
Trait Implementations
impl<Ms> UpdateEl<El<Ms>> for Style
[src]
impl<Ms, '_> UpdateEl<El<Ms>> for &'_ Style
[src]
impl Clone for Style
[src]
fn clone(&self) -> Style
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Style> for Style
[src]
impl ToString for Style
[src]
fn to_string(&self) -> String
[src]
Output style as a string, as would be set in the DOM as the attribute value for 'style'. Eg: "display: flex; font-size: 1.5em"
impl Debug for Style
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,