pub struct ElementAccess<'a, 'r> { /* private fields */ }Trait Implementations§
Source§impl<'de> AttributesAccess<'de> for ElementAccess<'_, 'de>
impl<'de> AttributesAccess<'de> for ElementAccess<'_, 'de>
Source§type SubAccess<'a> = SubAttributesAccess<'a, 'de>
where
Self: 'a
type SubAccess<'a> = SubAttributesAccess<'a, 'de> where Self: 'a
The type of the sub access for this attributes access returned by
AttributesAccess::sub_access.Source§fn next_attribute<T>(&mut self) -> Result<Option<T>, Self::Error>where
T: Deserialize<'de>,
fn next_attribute<T>(&mut self) -> Result<Option<T>, Self::Error>where
T: Deserialize<'de>,
Get the next attribute.
Source§impl Drop for ElementAccess<'_, '_>
impl Drop for ElementAccess<'_, '_>
Source§impl<'a, 'de> ElementAccess<'de> for ElementAccess<'a, 'de>
impl<'a, 'de> ElementAccess<'de> for ElementAccess<'a, 'de>
Source§type ChildrenAccess = ChildrenAccess<'a, 'de>
type ChildrenAccess = ChildrenAccess<'a, 'de>
The type of the children accessor returned by
ElementAccess::children.Source§fn name(&self) -> ExpandedName<'_>
fn name(&self) -> ExpandedName<'_>
Returns the name of the element.
Auto Trait Implementations§
impl<'a, 'r> Freeze for ElementAccess<'a, 'r>
impl<'a, 'r> RefUnwindSafe for ElementAccess<'a, 'r>
impl<'a, 'r> Send for ElementAccess<'a, 'r>
impl<'a, 'r> Sync for ElementAccess<'a, 'r>
impl<'a, 'r> Unpin for ElementAccess<'a, 'r>
impl<'a, 'r> !UnwindSafe for ElementAccess<'a, 'r>
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<'de, T> ElementAccessExt<'de> for Twhere
T: ElementAccess<'de>,
impl<'de, T> ElementAccessExt<'de> for Twhere
T: ElementAccess<'de>,
Source§fn ensure_name<E>(&self, name: &ExpandedName<'_>) -> Result<(), E>where
E: Error,
fn ensure_name<E>(&self, name: &ExpandedName<'_>) -> Result<(), E>where
E: Error,
Ensures that the element has the given name. If it does not, returns an error.