Struct qt_core::QJsonParseError
source · #[repr(C)]pub struct QJsonParseError { /* private fields */ }
Expand description
The QJsonParseError class is used to report errors during JSON parsing.
C++ class: QJsonParseError
.
The QJsonParseError class is used to report errors during JSON parsing.
Implementations§
source§impl QJsonParseError
impl QJsonParseError
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QJsonParseError>>
) -> Ref<QJsonParseError>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QJsonParseError>> ) -> Ref<QJsonParseError>
The QJsonParseError class is used to report errors during JSON parsing.
Calls C++ function: QJsonParseError& QJsonParseError::operator=(const QJsonParseError& other)
.
The QJsonParseError class is used to report errors during JSON parsing.
sourcepub unsafe fn error(&self) -> ParseError
pub unsafe fn error(&self) -> ParseError
Returns the value of the error
field.
sourcepub unsafe fn error_string(&self) -> CppBox<QString>
pub unsafe fn error_string(&self) -> CppBox<QString>
Returns the human-readable message appropriate to the reported JSON parsing error.
Calls C++ function: QString QJsonParseError::errorString() const
.
Returns the human-readable message appropriate to the reported JSON parsing error.
See also error.
sourcepub unsafe fn new() -> CppBox<QJsonParseError>
pub unsafe fn new() -> CppBox<QJsonParseError>
The QJsonParseError class is used to report errors during JSON parsing.
Calls C++ function: [constructor] void QJsonParseError::QJsonParseError()
.
The QJsonParseError class is used to report errors during JSON parsing.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QJsonParseError>>
) -> CppBox<QJsonParseError>
pub unsafe fn new_copy( other: impl CastInto<Ref<QJsonParseError>> ) -> CppBox<QJsonParseError>
The QJsonParseError class is used to report errors during JSON parsing.
Calls C++ function: [constructor] void QJsonParseError::QJsonParseError(const QJsonParseError& other)
.
The QJsonParseError class is used to report errors during JSON parsing.
sourcepub unsafe fn set_error(&self, value: ParseError)
pub unsafe fn set_error(&self, value: ParseError)
Sets the value of the error
field.
sourcepub unsafe fn set_offset(&self, value: c_int)
pub unsafe fn set_offset(&self, value: c_int)
Sets the value of the offset
field.
Trait Implementations§
source§impl CppDeletable for QJsonParseError
impl CppDeletable for QJsonParseError
source§unsafe fn delete(&self)
unsafe fn delete(&self)
The QJsonParseError class is used to report errors during JSON parsing.
Calls C++ function: [destructor] void QJsonParseError::~QJsonParseError()
.
The QJsonParseError class is used to report errors during JSON parsing.