[][src]Struct qt_core::QXmlStreamAttribute

#[repr(C)]
pub struct QXmlStreamAttribute { /* fields omitted */ }

The QXmlStreamAttribute class represents a single XML attribute

C++ class: QXmlStreamAttribute.

C++ documentation:

The QXmlStreamAttribute class represents a single XML attribute

An attribute consists of an optionally empty namespaceUri(), a name(), a value(), and an isDefault() attribute.

The raw XML attribute name is returned as qualifiedName().

Methods

impl QXmlStreamAttribute[src]

pub unsafe fn copy_from(
    &mut self,
    arg1: impl CastInto<Ref<QXmlStreamAttribute>>
) -> MutRef<QXmlStreamAttribute>
[src]

Assigns other to this attribute.

Calls C++ function: QXmlStreamAttribute& QXmlStreamAttribute::operator=(const QXmlStreamAttribute& arg1).

C++ documentation:

Assigns other to this attribute.

pub unsafe fn is_default(&self) -> bool[src]

Returns true if the parser added this attribute with a default value following an ATTLIST declaration in the DTD; otherwise returns false.

Calls C++ function: bool QXmlStreamAttribute::isDefault() const.

C++ documentation:

Returns true if the parser added this attribute with a default value following an ATTLIST declaration in the DTD; otherwise returns false.

pub unsafe fn name(&self) -> CppBox<QStringRef>[src]

Returns the attribute's local name.

Calls C++ function: QStringRef QXmlStreamAttribute::name() const.

C++ documentation:

Returns the attribute's local name.

pub unsafe fn namespace_uri(&self) -> CppBox<QStringRef>[src]

Returns the attribute's resolved namespaceUri, or an empty string reference if the attribute does not have a defined namespace.

Calls C++ function: QStringRef QXmlStreamAttribute::namespaceUri() const.

C++ documentation:

Returns the attribute's resolved namespaceUri, or an empty string reference if the attribute does not have a defined namespace.

pub unsafe fn new_0a() -> CppBox<QXmlStreamAttribute>[src]

Creates an empty attribute.

Calls C++ function: [constructor] void QXmlStreamAttribute::QXmlStreamAttribute().

C++ documentation:

Creates an empty attribute.

pub unsafe fn new_2a(
    qualified_name: impl CastInto<Ref<QString>>,
    value: impl CastInto<Ref<QString>>
) -> CppBox<QXmlStreamAttribute>
[src]

Constructs an attribute with qualified name qualifiedName and value value.

Calls C++ function: [constructor] void QXmlStreamAttribute::QXmlStreamAttribute(const QString& qualifiedName, const QString& value).

C++ documentation:

Constructs an attribute with qualified name qualifiedName and value value.

pub unsafe fn new_3a(
    namespace_uri: impl CastInto<Ref<QString>>,
    name: impl CastInto<Ref<QString>>,
    value: impl CastInto<Ref<QString>>
) -> CppBox<QXmlStreamAttribute>
[src]

Constructs an attribute in the namespace described with namespaceUri with name and value value.

Calls C++ function: [constructor] void QXmlStreamAttribute::QXmlStreamAttribute(const QString& namespaceUri, const QString& name, const QString& value).

C++ documentation:

Constructs an attribute in the namespace described with namespaceUri with name and value value.

pub unsafe fn new_copy(
    arg1: impl CastInto<Ref<QXmlStreamAttribute>>
) -> CppBox<QXmlStreamAttribute>
[src]

Creates a copy of other.

Calls C++ function: [constructor] void QXmlStreamAttribute::QXmlStreamAttribute(const QXmlStreamAttribute& arg1).

C++ documentation:

Creates a copy of other.

pub unsafe fn prefix(&self) -> CppBox<QStringRef>[src]

Returns the attribute's namespace prefix.

Calls C++ function: QStringRef QXmlStreamAttribute::prefix() const.

C++ documentation:

Returns the attribute's namespace prefix.

This function was introduced in Qt 4.4.

See also name() and qualifiedName().

pub unsafe fn qualified_name(&self) -> CppBox<QStringRef>[src]

Returns the attribute's qualified name.

Calls C++ function: QStringRef QXmlStreamAttribute::qualifiedName() const.

C++ documentation:

Returns the attribute's qualified name.

A qualified name is the raw name of an attribute in the XML data. It consists of the namespace prefix(), followed by colon, followed by the attribute's local name(). Since the namespace prefix is not unique (the same prefix can point to different namespaces and different prefixes can point to the same namespace), you shouldn't use qualifiedName(), but the resolved namespaceUri() and the attribute's local name().

pub unsafe fn value(&self) -> CppBox<QStringRef>[src]

Returns the attribute's value.

Calls C++ function: QStringRef QXmlStreamAttribute::value() const.

C++ documentation:

Returns the attribute's value.

Trait Implementations

impl PartialEq<Ref<QXmlStreamAttribute>> for QXmlStreamAttribute[src]

fn eq(&self, other: &Ref<QXmlStreamAttribute>) -> bool[src]

Compares this attribute with other and returns true if they are equal; otherwise returns false.

Calls C++ function: bool QXmlStreamAttribute::operator==(const QXmlStreamAttribute& other) const.

C++ documentation:

Compares this attribute with other and returns true if they are equal; otherwise returns false.

impl CppDeletable for QXmlStreamAttribute[src]

unsafe fn delete(&mut self)[src]

Destructs an attribute.

Calls C++ function: [destructor] void QXmlStreamAttribute::~QXmlStreamAttribute().

C++ documentation:

Destructs an attribute.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]