[][src]Struct qt_core::QCborParserError

#[repr(C)]
pub struct QCborParserError { /* fields omitted */ }

The QCborParserError is used by QCborValue to report a parsing error.

C++ class: QCborParserError.

C++ documentation:

The QCborParserError is used by QCborValue to report a parsing error.

This class is used by QCborValue::fromCbor(const QByteArray &ba, QCborParserError *error) to report a parser error and the byte offset where the error was detected.

Methods

impl QCborParserError[src]

pub unsafe fn copy_from(
    &mut self,
    other: impl CastInto<Ref<QCborParserError>>
) -> MutRef<QCborParserError>
[src]

The QCborParserError is used by QCborValue to report a parsing error.

Calls C++ function: QCborParserError& QCborParserError::operator=(const QCborParserError& other).

C++ documentation:

The QCborParserError is used by QCborValue to report a parsing error.

This class is used by QCborValue::fromCbor(const QByteArray &ba, QCborParserError *error) to report a parser error and the byte offset where the error was detected.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn error(&self) -> Ref<QCborError>[src]

Returns a reference to the error field.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn error_mut(&mut self) -> MutRef<QCborError>[src]

Returns a mutable reference to the error field.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn error_string(&self) -> CppBox<QString>[src]

Returns a string representation of the error code. This string is not translated.

Calls C++ function: QString QCborParserError::errorString() const.

C++ documentation:

Returns a string representation of the error code. This string is not translated.

See also QCborError::toString() and QCborValue::fromCbor().

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn new() -> CppBox<QCborParserError>[src]

The QCborParserError is used by QCborValue to report a parsing error.

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

C++ documentation:

The QCborParserError is used by QCborValue to report a parsing error.

This class is used by QCborValue::fromCbor(const QByteArray &ba, QCborParserError *error) to report a parser error and the byte offset where the error was detected.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QCborParserError>>
) -> CppBox<QCborParserError>
[src]

The QCborParserError is used by QCborValue to report a parsing error.

Calls C++ function: [constructor] void QCborParserError::QCborParserError(const QCborParserError& other).

C++ documentation:

The QCborParserError is used by QCborValue to report a parsing error.

This class is used by QCborValue::fromCbor(const QByteArray &ba, QCborParserError *error) to report a parser error and the byte offset where the error was detected.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn offset(&self) -> i64[src]

Returns the value of the offset field.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn set_error(&mut self, value: impl CastInto<Ref<QCborError>>)[src]

Sets the value of the error field.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn set_offset(&mut self, value: i64)[src]

Sets the value of the offset field.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

Trait Implementations

impl CppDeletable for QCborParserError[src]

unsafe fn delete(&mut self)[src]

The QCborParserError is used by QCborValue to report a parsing error.

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

C++ documentation:

The QCborParserError is used by QCborValue to report a parsing error.

This class is used by QCborValue::fromCbor(const QByteArray &ba, QCborParserError *error) to report a parser error and the byte offset where the error was detected.

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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

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

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