[−][src]Struct qt_core::QXmlStreamAttribute
The QXmlStreamAttribute class represents a single XML attribute
C++ class: QXmlStreamAttribute
.
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]
&mut self,
arg1: impl CastInto<Ref<QXmlStreamAttribute>>
) -> MutRef<QXmlStreamAttribute>
Assigns other to this attribute.
Calls C++ function: QXmlStreamAttribute& QXmlStreamAttribute::operator=(const QXmlStreamAttribute& arg1)
.
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
.
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
.
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
.
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()
.
Creates an empty attribute.
pub unsafe fn new_2a(
qualified_name: impl CastInto<Ref<QString>>,
value: impl CastInto<Ref<QString>>
) -> CppBox<QXmlStreamAttribute>
[src]
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)
.
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]
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)
.
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]
arg1: impl CastInto<Ref<QXmlStreamAttribute>>
) -> CppBox<QXmlStreamAttribute>
Creates a copy of other.
Calls C++ function: [constructor] void QXmlStreamAttribute::QXmlStreamAttribute(const QXmlStreamAttribute& arg1)
.
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
.
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
.
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
.
Returns the attribute's value.
Trait Implementations
impl CppDeletable for QXmlStreamAttribute
[src]
unsafe fn delete(&mut self)
[src]
Destructs an attribute.
Calls C++ function: [destructor] void QXmlStreamAttribute::~QXmlStreamAttribute()
.
Destructs an attribute.
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
.
Compares this attribute with other and returns true
if they are equal; otherwise returns false
.
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for QXmlStreamAttribute
impl Send for QXmlStreamAttribute
impl Sync for QXmlStreamAttribute
impl Unpin for QXmlStreamAttribute
impl UnwindSafe for QXmlStreamAttribute
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,