#[non_exhaustive]pub struct ProcessingInstruction<'a> {
pub target: &'a str,
pub value: Option<Cow<'a, str>>,
pub range: Range<usize>,
}Expand description
A processing instruction.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.target: &'a strThe target.
value: Option<Cow<'a, str>>The data after the whitespace that follows the target, line ends normalised;
None when empty.
range: Range<usize>The byte range as written.
Trait Implementations§
Source§impl<'a> Clone for ProcessingInstruction<'a>
impl<'a> Clone for ProcessingInstruction<'a>
Source§impl<'a> Debug for ProcessingInstruction<'a>
impl<'a> Debug for ProcessingInstruction<'a>
impl<'a> Eq for ProcessingInstruction<'a>
Source§impl<'a> PartialEq for ProcessingInstruction<'a>
impl<'a> PartialEq for ProcessingInstruction<'a>
impl<'a> StructuralPartialEq for ProcessingInstruction<'a>
Auto Trait Implementations§
impl<'a> Forget for ProcessingInstruction<'a>
impl<'a> Freeze for ProcessingInstruction<'a>
impl<'a> RefUnwindSafe for ProcessingInstruction<'a>
impl<'a> Send for ProcessingInstruction<'a>
impl<'a> Sync for ProcessingInstruction<'a>
impl<'a> Unpin for ProcessingInstruction<'a>
impl<'a> UnsafeUnpin for ProcessingInstruction<'a>
impl<'a> UnwindSafe for ProcessingInstruction<'a>
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