Struct xml::attribute::OwnedAttribute [−][src]
An owned version of an XML attribute.
Consists of an owned qualified name and an owned string value.
Fields
name: OwnedName
Attribute name.
value: String
Attribute value.
Implementations
impl OwnedAttribute
[src][−]
pub fn borrow(&self) -> Attribute<'_>
[src][−]
Returns a borrowed Attribute
out of this owned one.
pub fn new<S: Into<String>>(name: OwnedName, value: S) -> OwnedAttribute
[src][−]
Creates a new owned attribute using the provided owned name and an owned string value.
Trait Implementations
impl Clone for OwnedAttribute
[src][+]
impl Debug for OwnedAttribute
[src][+]
impl Display for OwnedAttribute
[src][+]
impl Eq for OwnedAttribute
[src]
impl Hash for OwnedAttribute
[src][+]
impl PartialEq<OwnedAttribute> for OwnedAttribute
[src][+]
impl StructuralEq for OwnedAttribute
[src]
impl StructuralPartialEq for OwnedAttribute
[src]
Auto Trait Implementations
impl RefUnwindSafe for OwnedAttribute
impl Send for OwnedAttribute
impl Sync for OwnedAttribute
impl Unpin for OwnedAttribute
impl UnwindSafe for OwnedAttribute
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,
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,
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>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,