[−][src]Struct khalas::css::style::StyleMap
Fields
map: IndexMap<St, String>
Methods
impl StyleMap
[src]
pub fn add(&mut self, key: impl Into<St>, value: impl ToString) -> &mut Self
[src]
This method provied a way to add custom style or css style that doesn't have it's own method yet.
use khalas::css::{Style, values as val, St}; div![ Style::default() .add(St::UserSelect, val::None) .add(St::BoxSizing, val::BorderBox) ]
pub fn try_add(
&mut self,
key: impl Into<St>,
value: Option<impl ToString>
) -> &mut Self
[src]
&mut self,
key: impl Into<St>,
value: Option<impl ToString>
) -> &mut Self
This method is similar add
but it accept an optional value, if the
passed value is None
then nothing added to the style.
pub fn merge(&mut self, other: &impl ToStyleMap) -> &mut Self
[src]
Merge this style map with other
pub fn try_merge(&mut self, other: Option<&impl ToStyleMap>) -> &mut Self
[src]
This method is similar to merge
but it accept an optional value.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StyleMap
impl Send for StyleMap
impl Sync for StyleMap
impl Unpin for StyleMap
impl UnwindSafe for StyleMap
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, 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>,