[−][src]Struct yew_stdweb::virtual_dom::Classes
A set of classes.
Implementations
impl Classes
[src]
pub fn new() -> Self
[src]
Creates an empty set of classes.
pub fn push(&mut self, class: &str)
[src]
Adds a class to a set.
If the provided class has already been added, this method will ignore it.
pub fn contains(&self, class: &str) -> bool
[src]
Check the set contains a class.
pub fn is_empty(&self) -> bool
[src]
Check the set is empty.
pub fn extend<T: Into<Classes>>(self, other: T) -> Self
[src]
Adds other classes to this set of classes; returning itself.
Takes the logical union of both Classes
.
Trait Implementations
impl Clone for Classes
[src]
impl Debug for Classes
[src]
impl Default for Classes
[src]
impl<T: AsRef<str>, '_> From<&'_ [T]> for Classes
[src]
impl<T: AsRef<str>, '_> From<&'_ Option<T>> for Classes
[src]
impl<'_> From<&'_ String> for Classes
[src]
impl<'_> From<&'_ str> for Classes
[src]
impl<T: AsRef<str>> From<Option<T>> for Classes
[src]
impl From<String> for Classes
[src]
impl<T: AsRef<str>> From<Vec<T>> for Classes
[src]
impl PartialEq<Classes> for Classes
[src]
impl ToString for Classes
[src]
Auto Trait Implementations
impl RefUnwindSafe for Classes
impl Send for Classes
impl Sync for Classes
impl Unpin for Classes
impl UnwindSafe for Classes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
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> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
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> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,