[−][src]Struct exile::PI
Represents a Processing Instruction (PI) in an XML document.
XML Spec
https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-pi [Definition: Processing instructions (PIs) allow documents to contain instructions for applications.]
Processing Instructions
[16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'
[17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))
PIs are not part of the document's character data, but must be passed through to the application. The PI begins with a target (PITarget) used to identify the application to which the instruction is directed. The target names "XML", "xml", and so on are reserved for standardization in this or future versions of this specification. The XML Notation mechanism may be used for formal declaration of PI targets. Parameter entity references must not be recognized within processing instructions.
Fields
target: String
The processing instruction target.
data: String
The processing instruction data.
Implementations
impl PI
[src]
pub fn write<W>(
&self,
writer: &mut W,
opts: &WriteOpts,
depth: usize
) -> Result<(), XDocErr> where
W: Write,
[src]
&self,
writer: &mut W,
opts: &WriteOpts,
depth: usize
) -> Result<(), XDocErr> where
W: Write,
Write the processing instruction to the Write
object.
Trait Implementations
impl Clone for PI
[src]
impl Debug for PI
[src]
impl Default for PI
[src]
impl Display for PI
[src]
impl Eq for PI
[src]
impl Hash for PI
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PI
[src]
pub fn cmp(&self, other: &PI) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<PI> for PI
[src]
impl PartialOrd<PI> for PI
[src]
pub fn partial_cmp(&self, other: &PI) -> Option<Ordering>
[src]
pub fn lt(&self, other: &PI) -> bool
[src]
pub fn le(&self, other: &PI) -> bool
[src]
pub fn gt(&self, other: &PI) -> bool
[src]
pub fn ge(&self, other: &PI) -> bool
[src]
impl StructuralEq for PI
[src]
impl StructuralPartialEq for PI
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,