[][src]Struct arwa::Classes

pub struct Classes<'a> { /* fields omitted */ }

Methods

impl<'a> Classes<'a>[src]

pub fn get(&self, index: usize) -> Option<String>[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn is_not_empty(&self) -> bool[src]

pub fn contains(&self, class: &str) -> bool[src]

pub fn insert(&self, class: &str)[src]

pub fn remove(&self, class: &str)[src]

pub fn toggle(&self, class: &str) -> bool[src]

pub fn replace(&self, old: &str, new: &str) -> bool[src]

Important traits for ClassesIter<'a>
pub fn iter(&self) -> ClassesIter[src]

Trait Implementations

impl<'a> IntoIterator for Classes<'a>[src]

type Item = String

The type of the elements being iterated over.

type IntoIter = ClassesIntoIter<'a>

Which kind of iterator are we turning this into?

impl<'a> ToString for Classes<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Classes<'a>

impl<'a> !Send for Classes<'a>

impl<'a> !Sync for Classes<'a>

impl<'a> Unpin for Classes<'a>

impl<'a> UnwindSafe for Classes<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.