Struct quick_xml::events::BytesDecl[][src]

pub struct BytesDecl<'a> { /* fields omitted */ }
Expand description

An XML declaration (Event::Decl).

W3C XML 1.1 Prolog and Document Type Declaration

Implementations

Creates a BytesDecl from a BytesStart

Gets xml version, including quotes (’ or “)

Gets xml encoding, including quotes (’ or “)

Gets xml standalone, including quotes (’ or “)

Constructs a new XmlDecl from the (mandatory) version (should be 1.0 or 1.1), the optional encoding (e.g., UTF-8) and the optional standalone (yes or no) attribute.

Does not escape any of its inputs. Always uses double quotes to wrap the attribute values. The caller is responsible for escaping attribute values. Shouldn’t usually be relevant since the double quote character is not allowed in any of the attribute values.

Converts the event into an owned event.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.