#[repr(C)]
pub struct QXmlStreamAttribute { /* private fields */ }
Expand description

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().

Implementations§

source§

impl QXmlStreamAttribute

source

pub unsafe fn copy_from( &self, arg1: impl CastInto<Ref<QXmlStreamAttribute>> ) -> Ref<QXmlStreamAttribute>

Assigns other to this attribute.

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

C++ documentation:

Assigns other to this attribute.

source

pub unsafe fn is_default(&self) -> bool

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.

source

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

Returns the attribute's local name.

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

C++ documentation:

Returns the attribute’s local name.

source

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

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.

source

pub unsafe fn new_0a() -> CppBox<QXmlStreamAttribute>

Creates an empty attribute.

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

C++ documentation:

Creates an empty attribute.

source

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

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.

source

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

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.

source

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

Creates a copy of other.

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

C++ documentation:

Creates a copy of other.

source

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

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().

source

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

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().

source

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

Returns the attribute's value.

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

C++ documentation:

Returns the attribute’s value.

Trait Implementations§

source§

impl CppDeletable for QXmlStreamAttribute

source§

unsafe fn delete(&self)

Destructs an attribute.

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

C++ documentation:

Destructs an attribute.

source§

impl PartialEq<Ref<QXmlStreamAttribute>> for QXmlStreamAttribute

source§

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

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.

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.