Struct qt_core::QCborParserError
source · #[repr(C)]pub struct QCborParserError { /* private fields */ }
Expand description
The QCborParserError is used by QCborValue to report a parsing error.
C++ class: QCborParserError
.
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.
Implementations§
source§impl QCborParserError
impl QCborParserError
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QCborParserError>>
) -> Ref<QCborParserError>
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QCborParserError>> ) -> Ref<QCborParserError>
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.The QCborParserError is used by QCborValue to report a parsing error.
Calls C++ function: QCborParserError& QCborParserError::operator=(const QCborParserError& other)
.
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.
sourcepub unsafe fn error(&self) -> Ref<QCborError>
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
pub unsafe fn error(&self) -> Ref<QCborError>
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Returns a reference to the error
field.
sourcepub unsafe fn error_mut(&self) -> Ref<QCborError>
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
pub unsafe fn error_mut(&self) -> Ref<QCborError>
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Returns a mutable reference to the error
field.
sourcepub unsafe fn error_string(&self) -> CppBox<QString>
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
pub unsafe fn error_string(&self) -> CppBox<QString>
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Returns a string representation of the error code. This string is not translated.
Calls C++ function: QString QCborParserError::errorString() const
.
Returns a string representation of the error code. This string is not translated.
See also QCborError::toString() and QCborValue::fromCbor().
sourcepub unsafe fn new() -> CppBox<QCborParserError>
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
pub unsafe fn new() -> CppBox<QCborParserError>
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.The QCborParserError is used by QCborValue to report a parsing error.
Calls C++ function: [constructor] void QCborParserError::QCborParserError()
.
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.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QCborParserError>>
) -> CppBox<QCborParserError>
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
pub unsafe fn new_copy( other: impl CastInto<Ref<QCborParserError>> ) -> CppBox<QCborParserError>
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.The QCborParserError is used by QCborValue to report a parsing error.
Calls C++ function: [constructor] void QCborParserError::QCborParserError(const QCborParserError& other)
.
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.
sourcepub unsafe fn offset(&self) -> i64
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
pub unsafe fn offset(&self) -> i64
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Returns the value of the offset
field.
sourcepub unsafe fn set_error(&self, value: impl CastInto<Ref<QCborError>>)
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
pub unsafe fn set_error(&self, value: impl CastInto<Ref<QCborError>>)
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Sets the value of the error
field.
sourcepub unsafe fn set_offset(&self, value: i64)
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
pub unsafe fn set_offset(&self, value: i64)
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Sets the value of the offset
field.
Trait Implementations§
source§impl CppDeletable for QCborParserError
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
impl CppDeletable for QCborParserError
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.source§unsafe fn delete(&self)
unsafe fn delete(&self)
The QCborParserError is used by QCborValue to report a parsing error.
Calls C++ function: [destructor] void QCborParserError::~QCborParserError()
.
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.