pub struct PIData { /* private fields */ }
Expand description
Represents processing instruction data, contained by the
Token::PIData
variant.
See the XML 1.1 specification for details.
Implementations§
Source§impl PIData
impl PIData
Sourcepub fn new_unvalidated(data: String) -> PIData
pub fn new_unvalidated(data: String) -> PIData
Create a PIData
without validating that data
conforms
to the XML specification.
Sourcepub fn get_as_str(&self) -> &str
pub fn get_as_str(&self) -> &str
Returns the data as a &str
.
Trait Implementations§
impl StructuralPartialEq for PIData
Auto Trait Implementations§
impl Freeze for PIData
impl RefUnwindSafe for PIData
impl Send for PIData
impl Sync for PIData
impl Unpin for PIData
impl UnwindSafe for PIData
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