#[non_exhaustive]pub struct XmlComment(pub Vec<u8>);
Expand description
XML Comment
Tuple 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.0: Vec<u8>
Implementations§
Trait Implementations§
Source§impl Clone for XmlComment
impl Clone for XmlComment
Source§fn clone(&self) -> XmlComment
fn clone(&self) -> XmlComment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for XmlComment
impl Debug for XmlComment
Source§impl<'de> Deserialize<'de> for XmlComment
impl<'de> Deserialize<'de> for XmlComment
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserializes a value from a deserializer.
Source§fn deserialize_seq<D: Deserializer<'de>>(reader: D) -> Result<Self, D::Error>
fn deserialize_seq<D: Deserializer<'de>>(reader: D) -> Result<Self, D::Error>
Deserializes a value from a deserializer, but tries to do it from a sequence of values.
Source§impl<'de> Deserializer<'de> for &'de XmlComment
impl<'de> Deserializer<'de> for &'de XmlComment
Source§impl From<XmlComment> for XmlChild
impl From<XmlComment> for XmlChild
Source§fn from(value: XmlComment) -> Self
fn from(value: XmlComment) -> Self
Converts to this type from the input type.
Source§impl<T> From<XmlComment> for XmlRootTop<T>
impl<T> From<XmlComment> for XmlRootTop<T>
Source§fn from(value: XmlComment) -> Self
fn from(value: XmlComment) -> Self
Converts to this type from the input type.
Source§impl From<XmlComment> for XmlValue
impl From<XmlComment> for XmlValue
Source§fn from(value: XmlComment) -> Self
fn from(value: XmlComment) -> Self
Converts to this type from the input type.
Source§impl Hash for XmlComment
impl Hash for XmlComment
Source§impl Ord for XmlComment
impl Ord for XmlComment
Source§fn cmp(&self, other: &XmlComment) -> Ordering
fn cmp(&self, other: &XmlComment) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for XmlComment
impl PartialEq for XmlComment
Source§impl PartialOrd for XmlComment
impl PartialOrd for XmlComment
Source§impl Serialize for XmlComment
impl Serialize for XmlComment
Source§impl<'de> XmlComment<'de> for &'de XmlComment
impl<'de> XmlComment<'de> for &'de XmlComment
Source§type NamespaceContext<'a> = ()
where
Self: 'a
type NamespaceContext<'a> = () where Self: 'a
The type of the namespace context returned by [
AttributeAccess::namespace_context
].Source§fn into_bytes(self) -> Cow<'de, [u8]>
fn into_bytes(self) -> Cow<'de, [u8]>
Returns the owned byte representation of the comment.
Source§fn namespace_context(&self) -> Self::NamespaceContext<'_>
fn namespace_context(&self) -> Self::NamespaceContext<'_>
Returns the namespace context of the comment.
impl Eq for XmlComment
impl StructuralPartialEq for XmlComment
Auto Trait Implementations§
impl Freeze for XmlComment
impl RefUnwindSafe for XmlComment
impl Send for XmlComment
impl Sync for XmlComment
impl Unpin for XmlComment
impl UnwindSafe for XmlComment
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