[−][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]
impl Style
pub fn new(vals: HashMap<String, String>) -> Self
[src]
pub fn new(vals: HashMap<String, String>) -> Self
pub fn empty() -> Self
[src]
pub fn empty() -> Self
pub fn as_str(&self) -> String
[src]
pub fn as_str(&self) -> String
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"
pub fn add(&mut self, key: &str, val: &str)
[src]
pub fn add(&mut self, key: &str, val: &str)
Trait Implementations
impl<Ms: Clone> UpdateEl<El<Ms>> for Style
[src]
impl<Ms: Clone> UpdateEl<El<Ms>> for Style
impl<Ms: Clone, '_> UpdateEl<El<Ms>> for &'_ Style
[src]
impl<Ms: Clone, '_> UpdateEl<El<Ms>> for &'_ Style
impl PartialEq<Style> for Style
[src]
impl PartialEq<Style> for Style
impl Clone for Style
[src]
impl Clone for Style
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId