Skip to main content

QXmlStreamWriter

Struct QXmlStreamWriter 

Source
pub struct QXmlStreamWriter { /* private fields */ }
Expand description

C++ class: QXmlStreamWriter.

Implementations§

Source§

impl QXmlStreamWriter

Source

pub unsafe fn auto_formatting(&self) -> bool

Calls C++ function: bool QXmlStreamWriter::autoFormatting() const.

Source

pub unsafe fn auto_formatting_indent(&self) -> c_int

Calls C++ function: int QXmlStreamWriter::autoFormattingIndent() const.

Source

pub unsafe fn codec(&self) -> Ptr<QTextCodec>

Calls C++ function: QTextCodec* QXmlStreamWriter::codec() const.

Source

pub unsafe fn device(&self) -> QPtr<QIODevice>

Calls C++ function: QIODevice* QXmlStreamWriter::device() const.

Source

pub unsafe fn has_error(&self) -> bool

Calls C++ function: bool QXmlStreamWriter::hasError() const.

Source

pub unsafe fn new() -> CppBox<QXmlStreamWriter>

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

Source

pub unsafe fn from_q_io_device( device: impl CastInto<Ptr<QIODevice>>, ) -> CppBox<QXmlStreamWriter>

Calls C++ function: [constructor] void QXmlStreamWriter::QXmlStreamWriter(QIODevice* device).

Source

pub unsafe fn from_q_byte_array( array: impl CastInto<Ptr<QByteArray>>, ) -> CppBox<QXmlStreamWriter>

Calls C++ function: [constructor] void QXmlStreamWriter::QXmlStreamWriter(QByteArray* array).

Source

pub unsafe fn from_q_string( string: impl CastInto<Ptr<QString>>, ) -> CppBox<QXmlStreamWriter>

Calls C++ function: [constructor] void QXmlStreamWriter::QXmlStreamWriter(QString* string).

Source

pub unsafe fn set_auto_formatting(&self, arg1: bool)

Calls C++ function: void QXmlStreamWriter::setAutoFormatting(bool arg1).

Source

pub unsafe fn set_auto_formatting_indent(&self, spaces_or_tabs: c_int)

Calls C++ function: void QXmlStreamWriter::setAutoFormattingIndent(int spacesOrTabs).

Source

pub unsafe fn set_codec_q_text_codec( &self, codec: impl CastInto<Ptr<QTextCodec>>, )

Calls C++ function: void QXmlStreamWriter::setCodec(QTextCodec* codec).

Source

pub unsafe fn set_codec_char(&self, codec_name: *const c_char)

Calls C++ function: void QXmlStreamWriter::setCodec(const char* codecName).

Source

pub unsafe fn set_device(&self, device: impl CastInto<Ptr<QIODevice>>)

Calls C++ function: void QXmlStreamWriter::setDevice(QIODevice* device).

Source

pub unsafe fn write_attribute_2a( &self, qualified_name: impl CastInto<Ref<QString>>, value: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeAttribute(const QString& qualifiedName, const QString& value).

Source

pub unsafe fn write_attribute_3a( &self, namespace_uri: impl CastInto<Ref<QString>>, name: impl CastInto<Ref<QString>>, value: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeAttribute(const QString& namespaceUri, const QString& name, const QString& value).

Source

pub unsafe fn write_attribute_1a( &self, attribute: impl CastInto<Ref<QXmlStreamAttribute>>, )

Calls C++ function: void QXmlStreamWriter::writeAttribute(const QXmlStreamAttribute& attribute).

Source

pub unsafe fn write_attributes( &self, attributes: impl CastInto<Ref<QXmlStreamAttributes>>, )

Calls C++ function: void QXmlStreamWriter::writeAttributes(const QXmlStreamAttributes& attributes).

Source

pub unsafe fn write_c_d_a_t_a(&self, text: impl CastInto<Ref<QString>>)

Calls C++ function: void QXmlStreamWriter::writeCDATA(const QString& text).

Source

pub unsafe fn write_characters(&self, text: impl CastInto<Ref<QString>>)

Calls C++ function: void QXmlStreamWriter::writeCharacters(const QString& text).

Source

pub unsafe fn write_comment(&self, text: impl CastInto<Ref<QString>>)

Calls C++ function: void QXmlStreamWriter::writeComment(const QString& text).

Source

pub unsafe fn write_current_token( &self, reader: impl CastInto<Ref<QXmlStreamReader>>, )

Calls C++ function: void QXmlStreamWriter::writeCurrentToken(const QXmlStreamReader& reader).

Source

pub unsafe fn write_d_t_d(&self, dtd: impl CastInto<Ref<QString>>)

Calls C++ function: void QXmlStreamWriter::writeDTD(const QString& dtd).

Source

pub unsafe fn write_default_namespace( &self, namespace_uri: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeDefaultNamespace(const QString& namespaceUri).

Source

pub unsafe fn write_empty_element_1a( &self, qualified_name: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeEmptyElement(const QString& qualifiedName).

Source

pub unsafe fn write_empty_element_2a( &self, namespace_uri: impl CastInto<Ref<QString>>, name: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeEmptyElement(const QString& namespaceUri, const QString& name).

Source

pub unsafe fn write_end_document(&self)

Calls C++ function: void QXmlStreamWriter::writeEndDocument().

Source

pub unsafe fn write_end_element(&self)

Calls C++ function: void QXmlStreamWriter::writeEndElement().

Source

pub unsafe fn write_entity_reference(&self, name: impl CastInto<Ref<QString>>)

Calls C++ function: void QXmlStreamWriter::writeEntityReference(const QString& name).

Source

pub unsafe fn write_namespace_2a( &self, namespace_uri: impl CastInto<Ref<QString>>, prefix: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeNamespace(const QString& namespaceUri, const QString& prefix = …).

Source

pub unsafe fn write_namespace_1a( &self, namespace_uri: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeNamespace(const QString& namespaceUri).

Source

pub unsafe fn write_processing_instruction_2a( &self, target: impl CastInto<Ref<QString>>, data: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeProcessingInstruction(const QString& target, const QString& data = …).

Source

pub unsafe fn write_processing_instruction_1a( &self, target: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeProcessingInstruction(const QString& target).

Source

pub unsafe fn write_start_document_0a(&self)

Calls C++ function: void QXmlStreamWriter::writeStartDocument().

Source

pub unsafe fn write_start_document_1a( &self, version: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeStartDocument(const QString& version).

Source

pub unsafe fn write_start_document_2a( &self, version: impl CastInto<Ref<QString>>, standalone: bool, )

Calls C++ function: void QXmlStreamWriter::writeStartDocument(const QString& version, bool standalone).

Source

pub unsafe fn write_start_element_1a( &self, qualified_name: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeStartElement(const QString& qualifiedName).

Source

pub unsafe fn write_start_element_2a( &self, namespace_uri: impl CastInto<Ref<QString>>, name: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeStartElement(const QString& namespaceUri, const QString& name).

Source

pub unsafe fn write_text_element_2a( &self, qualified_name: impl CastInto<Ref<QString>>, text: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeTextElement(const QString& qualifiedName, const QString& text).

Source

pub unsafe fn write_text_element_3a( &self, namespace_uri: impl CastInto<Ref<QString>>, name: impl CastInto<Ref<QString>>, text: impl CastInto<Ref<QString>>, )

Calls C++ function: void QXmlStreamWriter::writeTextElement(const QString& namespaceUri, const QString& name, const QString& text).

Trait Implementations§

Source§

impl CppDeletable for QXmlStreamWriter

Source§

unsafe fn delete(&self)

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

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>,

Source§

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>,

Source§

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.