pub struct ElementEntryMut<'e> {
pub meta: &'e mut Element,
pub data: &'e mut Vec<Vec<u8>>,
}
Expand description
Element entry (mutable).
Fields§
§meta: &'e mut Element
Element metadata (mutable).
data: &'e mut Vec<Vec<u8>>
Element data (mutable).
Implementations§
source§impl<'e, 'p> ElementEntryMut<'e>where
'p: 'e,
impl<'e, 'p> ElementEntryMut<'e>where
'p: 'e,
Short named mutators
sourcepub fn prop_mut<Q>(&'p mut self, name: Q) -> Option<PropertyEntryMut<'p>>
pub fn prop_mut<Q>(&'p mut self, name: Q) -> Option<PropertyEntryMut<'p>>
Get a mutable property by name.
sourcepub fn props_mut(&'p mut self) -> impl Iterator<Item = PropertyEntryMut<'p>>
pub fn props_mut(&'p mut self) -> impl Iterator<Item = PropertyEntryMut<'p>>
Return an iterator over mutable properties.
source§impl<'e, 'p> ElementEntryMut<'e>where
'p: 'e,
impl<'e, 'p> ElementEntryMut<'e>where
'p: 'e,
Long named mutators
sourcepub fn get_mut_property<Q>(
&'p mut self,
name: Q,
) -> Option<PropertyEntryMut<'p>>
pub fn get_mut_property<Q>( &'p mut self, name: Q, ) -> Option<PropertyEntryMut<'p>>
Get a mutable property by name.
sourcepub fn iter_mut_properties(
&'p mut self,
) -> impl Iterator<Item = PropertyEntryMut<'p>>
pub fn iter_mut_properties( &'p mut self, ) -> impl Iterator<Item = PropertyEntryMut<'p>>
Return an iterator over mutable properties.
Trait Implementations§
source§impl<'e> AsRef<&'e mut Element> for ElementEntryMut<'e>
impl<'e> AsRef<&'e mut Element> for ElementEntryMut<'e>
source§impl<'e> Debug for ElementEntryMut<'e>
impl<'e> Debug for ElementEntryMut<'e>
source§impl<'e> PartialEq for ElementEntryMut<'e>
impl<'e> PartialEq for ElementEntryMut<'e>
impl<'e> Eq for ElementEntryMut<'e>
impl<'e> StructuralPartialEq for ElementEntryMut<'e>
Auto Trait Implementations§
impl<'e> Freeze for ElementEntryMut<'e>
impl<'e> RefUnwindSafe for ElementEntryMut<'e>
impl<'e> Send for ElementEntryMut<'e>
impl<'e> Sync for ElementEntryMut<'e>
impl<'e> Unpin for ElementEntryMut<'e>
impl<'e> !UnwindSafe for ElementEntryMut<'e>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more