[][src]Struct qt_core::q_xml_stream_reader::TokenType

#[repr(transparent)]pub struct TokenType(_);

This enum specifies the type of token the reader just read.

C++ enum: QXmlStreamReader::TokenType.

C++ documentation:

This enum specifies the type of token the reader just read.

Methods

impl TokenType[src]

pub fn to_int(&self) -> c_int[src]

impl TokenType[src]

pub const NoToken: TokenType[src]

The reader has not yet read anything. (C++ enum variant: NoToken = 0)

pub const Invalid: TokenType[src]

An error has occurred, reported in error() and errorString(). (C++ enum variant: Invalid = 1)

pub const StartDocument: TokenType[src]

The reader reports the XML version number in documentVersion(), and the encoding as specified in the XML document in documentEncoding(). If the document is declared standalone, isStandaloneDocument() returns true; otherwise it returns false. (C++ enum variant: StartDocument = 2)

pub const EndDocument: TokenType[src]

The reader reports the end of the document. (C++ enum variant: EndDocument = 3)

pub const StartElement: TokenType[src]

The reader reports the start of an element with namespaceUri() and name(). Empty elements are also reported as StartElement, followed directly by EndElement. The convenience function readElementText() can be called to concatenate all content until the corresponding EndElement. Attributes are reported in attributes(), namespace declarations in namespaceDeclarations(). (C++ enum variant: StartElement = 4)

pub const EndElement: TokenType[src]

The reader reports the end of an element with namespaceUri() and name(). (C++ enum variant: EndElement = 5)

pub const Characters: TokenType[src]

The reader reports characters in text(). If the characters are all white-space, isWhitespace() returns true. If the characters stem from a CDATA section, isCDATA() returns true. (C++ enum variant: Characters = 6)

pub const Comment: TokenType[src]

The reader reports a comment in text(). (C++ enum variant: Comment = 7)

pub const DTD: TokenType[src]

The reader reports a DTD in text(), notation declarations in notationDeclarations(), and entity declarations in entityDeclarations(). Details of the DTD declaration are reported in in dtdName(), dtdPublicId(), and dtdSystemId(). (C++ enum variant: DTD = 8)

pub const EntityReference: TokenType[src]

The reader reports an entity reference that could not be resolved. The name of the reference is reported in name(), the replacement text in text(). (C++ enum variant: EntityReference = 9)

pub const ProcessingInstruction: TokenType[src]

The reader reports a processing instruction in processingInstructionTarget() and processingInstructionData(). (C++ enum variant: ProcessingInstruction = 10)

Trait Implementations

impl Clone for TokenType[src]

impl Copy for TokenType[src]

impl Debug for TokenType[src]

impl Eq for TokenType[src]

impl From<TokenType> for c_int[src]

impl From<i32> for TokenType[src]

impl PartialEq<TokenType> for TokenType[src]

impl StructuralEq for TokenType[src]

impl StructuralPartialEq for TokenType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.