pub struct ElementEntry<'e> {
pub meta: &'e Element,
pub data: &'e Vec<Vec<u8>>,
}
Expand description
Element entry.
Fields§
§meta: &'e Element
Element metadata.
data: &'e Vec<Vec<u8>>
Element data.
Implementations§
source§impl<'e> ElementEntry<'e>
impl<'e> ElementEntry<'e>
source§impl<'e, 'p> ElementEntry<'e>where
'p: 'e,
impl<'e, 'p> ElementEntry<'e>where
'p: 'e,
Short named accessors
sourcepub fn prop<Q>(&'p self, name: Q) -> Option<PropertyEntry<'p>>
pub fn prop<Q>(&'p self, name: Q) -> Option<PropertyEntry<'p>>
Get a property by name.
sourcepub fn props(&'p self) -> impl Iterator<Item = PropertyEntry<'p>>
pub fn props(&'p self) -> impl Iterator<Item = PropertyEntry<'p>>
Return an iterator over properties.
source§impl<'e, 'p> ElementEntry<'e>where
'p: 'e,
impl<'e, 'p> ElementEntry<'e>where
'p: 'e,
Long named accessors
sourcepub fn get_property<Q>(&'p self, name: Q) -> Option<PropertyEntry<'p>>
pub fn get_property<Q>(&'p self, name: Q) -> Option<PropertyEntry<'p>>
Get a property by name.
sourcepub fn iter_properties(&'p self) -> impl Iterator<Item = PropertyEntry<'p>>
pub fn iter_properties(&'p self) -> impl Iterator<Item = PropertyEntry<'p>>
Return an iterator over properties.
Trait Implementations§
source§impl<'e> AsRef<&'e Element> for ElementEntry<'e>
impl<'e> AsRef<&'e Element> for ElementEntry<'e>
source§impl<'e> Clone for ElementEntry<'e>
impl<'e> Clone for ElementEntry<'e>
source§fn clone(&self) -> ElementEntry<'e>
fn clone(&self) -> ElementEntry<'e>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'e> Debug for ElementEntry<'e>
impl<'e> Debug for ElementEntry<'e>
source§impl<'e> PartialEq for ElementEntry<'e>
impl<'e> PartialEq for ElementEntry<'e>
impl<'e> Eq for ElementEntry<'e>
impl<'e> StructuralPartialEq for ElementEntry<'e>
Auto Trait Implementations§
impl<'e> Freeze for ElementEntry<'e>
impl<'e> RefUnwindSafe for ElementEntry<'e>
impl<'e> Send for ElementEntry<'e>
impl<'e> Sync for ElementEntry<'e>
impl<'e> Unpin for ElementEntry<'e>
impl<'e> UnwindSafe for ElementEntry<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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