pub struct Path { /* private fields */ }Expand description
Where one element of an XML part lies: steps from the part’s root element down, each the
name of a child element with an optional test, such as w:body/w:p[3] or
w:style[@w:styleId='Heading1'].
- A step names a child element by its qualified name. The prefix resolves with the namespace declarations of the part’s root element, and an element matches by its namespace URI and local name, so a part that uses another prefix for the same URI still matches. A name without a prefix takes the root element’s default namespace, if it has one.
[N]picks the child at the placeNamong the child elements that match the step’s name, counted from 1, as in the XML Path Language and as in the addresses offoffice read; other children do not count.[@name='value']picks the one matching child whose attributenamehas the valuevalue, with'or"as the quote. An attribute name without a prefix has no namespace, as in XML.- Without a test, the step must match exactly one child.
The root element itself is not a step, so a path never names it.
Implementations§
Trait Implementations§
impl Eq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Forget for Path
impl Freeze for Path
impl Move for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.