Struct virtual_view::Props
[−]
[src]
pub struct Props(_);
Methods
impl Props
[src]
pub fn new() -> Self
[src]
pub fn insert<K, V>(&mut self, key: K, value: V) where
K: ToString,
V: Into<Prop>,
[src]
K: ToString,
V: Into<Prop>,
pub fn set<K, V>(&mut self, key: K, value: V) where
K: ToString,
V: Into<Prop>,
[src]
K: ToString,
V: Into<Prop>,
pub fn remove(&mut self, key: &str) -> Option<Prop>
[src]
pub fn delete(&mut self, key: &str) -> Prop
[src]
pub fn has(&self, key: &str) -> bool
[src]
pub fn take(&self, key: &str) -> Option<Prop>
[src]
pub fn get(&self, key: &str) -> &Prop
[src]
pub fn get_mut(&mut self, key: &str) -> &mut Prop
[src]
pub fn extend<I, K, V>(&mut self, iter: I) where
I: IntoIterator<Item = (K, V)>,
K: ToString,
V: Into<Prop>,
[src]
I: IntoIterator<Item = (K, V)>,
K: ToString,
V: Into<Prop>,
ⓘImportant traits for &'a mut Wpub fn update<F>(&mut self, key: &str, f: F) -> &mut Self where
F: Fn(&mut Prop),
[src]
F: Fn(&mut Prop),
pub fn to_json(&self) -> Value
[src]
Trait Implementations
impl From<Props> for Prop
[src]
impl Debug for Props
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for Props
[src]
impl Clone for Props
[src]
fn clone(&self) -> Props
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Props
[src]
fn eq(&self, __arg_0: &Props) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Props) -> bool
[src]
This method tests for !=
.
impl Eq for Props
[src]
impl Sync for Props
[src]
impl Send for Props
[src]
impl<'a> Index<&'a str> for Props
[src]
type Output = Prop
The returned type after indexing.
fn index(&self, key: &'a str) -> &Self::Output
[src]
Performs the indexing (container[index]
) operation.
impl<'a> IndexMut<&'a str> for Props
[src]
fn index_mut(&mut self, key: &'a str) -> &mut Self::Output
[src]
Performs the mutable indexing (container[index]
) operation.
impl Deref for Props
[src]
type Target = FnvHashMap<String, Prop>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl DerefMut for Props
[src]
impl Hash for Props
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl IntoIterator for Props
[src]
type Item = (String, Prop)
The type of the elements being iterated over.
type IntoIter = IntoIter<String, Prop>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<'a> IntoIterator for &'a Props
[src]
type Item = (&'a String, &'a Prop)
The type of the elements being iterated over.
type IntoIter = Iter<'a, String, Prop>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<'a> IntoIterator for &'a mut Props
[src]
type Item = (&'a String, &'a mut Prop)
The type of the elements being iterated over.
type IntoIter = IterMut<'a, String, Prop>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<K, V> From<FnvHashMap<K, V>> for Props where
K: Eq + Hash + ToString,
V: Into<Prop>,
[src]
K: Eq + Hash + ToString,
V: Into<Prop>,
fn from(map: FnvHashMap<K, V>) -> Self
[src]
Performs the conversion.
impl<K, V> FromIterator<(K, V)> for Props where
K: Eq + Hash + ToString,
V: Into<Prop>,
[src]
K: Eq + Hash + ToString,
V: Into<Prop>,
fn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self
[src]
Creates a value from an iterator. Read more