Struct yew::prelude::Classes [−][src]
pub struct Classes { /* fields omitted */ }
Expand description
A set of classes.
The preferred way of creating this is using the classes!
macro.
Implementations
impl Classes
[src]
impl Classes
[src]pub fn with_capacity(n: usize) -> Self
[src]
pub fn with_capacity(n: usize) -> Self
[src]Creates an empty set of classes with capacity for n elements. (Does not allocate if n is zero.)
pub fn push<T: Into<Self>>(&mut self, class: T)
[src]
pub fn push<T: Into<Self>>(&mut self, class: T)
[src]Adds a class to a set.
If the provided class has already been added, this method will ignore it.
pub unsafe fn unchecked_push<T: Into<Cow<'static, str>>>(&mut self, class: T)
[src]
pub unsafe fn unchecked_push<T: Into<Cow<'static, str>>>(&mut self, class: T)
[src]Adds a class to a set.
If the provided class has already been added, this method will ignore it.
This method won’t check if there are multiple classes in the input string.
Safety
This function will not split the string into multiple classes. Please do not use it unless
you are absolutely certain that the string does not contain any whitespace. Using push()
is preferred.
Trait Implementations
impl<T: Into<Classes>> Extend<T> for Classes
[src]
impl<T: Into<Classes>> Extend<T> for Classes
[src]fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
[src]
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)
[src]
fn extend_one(&mut self, item: A)
[src]extend_one
)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl<T: Into<Classes>> FromIterator<T> for Classes
[src]
impl<T: Into<Classes>> FromIterator<T> for Classes
[src]fn from_iter<IT: IntoIterator<Item = T>>(iter: IT) -> Self
[src]
fn from_iter<IT: IntoIterator<Item = T>>(iter: IT) -> Self
[src]Creates a value from an iterator. Read more
impl IntoIterator for Classes
[src]
impl IntoIterator for Classes
[src]impl IntoOptPropValue<Cow<'static, str>> for Classes
[src]
impl IntoOptPropValue<Cow<'static, str>> for Classes
[src]fn into_opt_prop_value(self) -> Option<AttrValue>
[src]
fn into_opt_prop_value(self) -> Option<AttrValue>
[src]Convert self
to an optional value of a Properties
struct.
impl IntoPropValue<Cow<'static, str>> for Classes
[src]
impl IntoPropValue<Cow<'static, str>> for Classes
[src]fn into_prop_value(self) -> AttrValue
[src]
fn into_prop_value(self) -> AttrValue
[src]Convert self
to a value of a Properties
struct.
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> CloneAny for T where
T: Any + Clone,
[src]
T: Any + Clone,