pub struct XmlEdit {
pub part: String,
pub at: Path,
pub expect: String,
pub xml: String,
}Expand description
The raw edit: replaces the element at at of the XML part part, which must equal
expect, with xml.
Fields§
§part: StringThe part’s name, which may start with / and differ in the case of its ASCII letters
from the name in the package.
at: PathWhere the element lies in the part.
expect: StringThe element as the edit expects to find it. It parses with the namespace declarations
in scope at the element, and must equal the element by namespace
(Equality::ByNamespace): the same names by their namespace URI, the same attributes in
any order, and the same text, exactly. White space around the element, outside it, does
not count.
xml: StringThe new XML: no node, which deletes the element, one or several. It parses with the namespace declarations in scope at the element’s parent, so each prefix that it uses must be declared there or in it.
Trait Implementations§
impl Eq for XmlEdit
impl StructuralPartialEq for XmlEdit
Auto Trait Implementations§
impl Forget for XmlEdit
impl Freeze for XmlEdit
impl Move for XmlEdit
impl RefUnwindSafe for XmlEdit
impl Send for XmlEdit
impl Sync for XmlEdit
impl Unpin for XmlEdit
impl UnsafeUnpin for XmlEditwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Step>: UnsafeUnpin,
impl UnwindSafe for XmlEdit
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
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
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
T, using the provided data to resolve any offsets.