Struct qt_core::QXmlStreamNamespaceDeclaration
source · #[repr(C)]pub struct QXmlStreamNamespaceDeclaration { /* private fields */ }
Expand description
The QXmlStreamNamespaceDeclaration class represents a namespace declaration.
C++ class: QXmlStreamNamespaceDeclaration
.
The QXmlStreamNamespaceDeclaration class represents a namespace declaration.
An namespace declaration consists of a prefix() and a namespaceUri().
Implementations§
source§impl QXmlStreamNamespaceDeclaration
impl QXmlStreamNamespaceDeclaration
sourcepub unsafe fn copy_from(
&self,
arg1: impl CastInto<Ref<QXmlStreamNamespaceDeclaration>>
) -> Ref<QXmlStreamNamespaceDeclaration>
pub unsafe fn copy_from( &self, arg1: impl CastInto<Ref<QXmlStreamNamespaceDeclaration>> ) -> Ref<QXmlStreamNamespaceDeclaration>
Assigns other to this namespace declaration.
Calls C++ function: QXmlStreamNamespaceDeclaration& QXmlStreamNamespaceDeclaration::operator=(const QXmlStreamNamespaceDeclaration& arg1)
.
Assigns other to this namespace declaration.
sourcepub unsafe fn namespace_uri(&self) -> CppBox<QStringRef>
pub unsafe fn namespace_uri(&self) -> CppBox<QStringRef>
Returns the namespaceUri.
Calls C++ function: QStringRef QXmlStreamNamespaceDeclaration::namespaceUri() const
.
Returns the namespaceUri.
sourcepub unsafe fn new_0a() -> CppBox<QXmlStreamNamespaceDeclaration>
pub unsafe fn new_0a() -> CppBox<QXmlStreamNamespaceDeclaration>
Creates an empty namespace declaration.
Calls C++ function: [constructor] void QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration()
.
Creates an empty namespace declaration.
sourcepub unsafe fn new_2a(
prefix: impl CastInto<Ref<QString>>,
namespace_uri: impl CastInto<Ref<QString>>
) -> CppBox<QXmlStreamNamespaceDeclaration>
pub unsafe fn new_2a( prefix: impl CastInto<Ref<QString>>, namespace_uri: impl CastInto<Ref<QString>> ) -> CppBox<QXmlStreamNamespaceDeclaration>
Creates a namespace declaration with prefix and namespaceUri.
Calls C++ function: [constructor] void QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(const QString& prefix, const QString& namespaceUri)
.
Creates a namespace declaration with prefix and namespaceUri.
This function was introduced in Qt 4.4.
sourcepub unsafe fn new_copy(
arg1: impl CastInto<Ref<QXmlStreamNamespaceDeclaration>>
) -> CppBox<QXmlStreamNamespaceDeclaration>
pub unsafe fn new_copy( arg1: impl CastInto<Ref<QXmlStreamNamespaceDeclaration>> ) -> CppBox<QXmlStreamNamespaceDeclaration>
Creates a copy of other.
Calls C++ function: [constructor] void QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(const QXmlStreamNamespaceDeclaration& arg1)
.
Creates a copy of other.
sourcepub unsafe fn prefix(&self) -> CppBox<QStringRef>
pub unsafe fn prefix(&self) -> CppBox<QStringRef>
Returns the prefix.
Calls C++ function: QStringRef QXmlStreamNamespaceDeclaration::prefix() const
.
Returns the prefix.
Trait Implementations§
source§impl CppDeletable for QXmlStreamNamespaceDeclaration
impl CppDeletable for QXmlStreamNamespaceDeclaration
source§impl PartialEq<Ref<QXmlStreamNamespaceDeclaration>> for QXmlStreamNamespaceDeclaration
impl PartialEq<Ref<QXmlStreamNamespaceDeclaration>> for QXmlStreamNamespaceDeclaration
source§fn eq(&self, other: &Ref<QXmlStreamNamespaceDeclaration>) -> bool
fn eq(&self, other: &Ref<QXmlStreamNamespaceDeclaration>) -> bool
Compares this namespace declaration with other and returns true
if they are equal; otherwise returns false
.
Calls C++ function: bool QXmlStreamNamespaceDeclaration::operator==(const QXmlStreamNamespaceDeclaration& other) const
.
Compares this namespace declaration with other and returns true
if they are equal; otherwise returns false
.