Struct qt_core::q_cbor_stream_reader::StringResultCode
source · pub struct StringResultCode(/* private fields */);
Expand description
This enum is returned by readString() and readByteArray() and is used to indicate what the status of the parsing is.
C++ enum: QCborStreamReader::StringResultCode
.
This enum is returned by readString() and readByteArray() and is used to indicate what the status of the parsing is.
Implementations§
source§impl StringResultCode
impl StringResultCode
sourcepub const EndOfString: StringResultCode = _
pub const EndOfString: StringResultCode = _
The parsing for the string is complete, with no error. (C++ enum variant: EndOfString = 0
)
sourcepub const Ok: StringResultCode = _
pub const Ok: StringResultCode = _
The function returned data; there was no error. (C++ enum variant: Ok = 1
)
sourcepub const Error: StringResultCode = _
pub const Error: StringResultCode = _
Parsing failed with an error. (C++ enum variant: Error = -1
)
Trait Implementations§
source§impl Clone for StringResultCode
impl Clone for StringResultCode
source§fn clone(&self) -> StringResultCode
fn clone(&self) -> StringResultCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StringResultCode
impl Debug for StringResultCode
source§impl From<StringResultCode> for c_int
impl From<StringResultCode> for c_int
source§fn from(value: StringResultCode) -> Self
fn from(value: StringResultCode) -> Self
Converts to this type from the input type.
source§impl From<i32> for StringResultCode
impl From<i32> for StringResultCode
source§impl PartialEq for StringResultCode
impl PartialEq for StringResultCode
source§fn eq(&self, other: &StringResultCode) -> bool
fn eq(&self, other: &StringResultCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StringResultCode
impl Eq for StringResultCode
impl StructuralEq for StringResultCode
impl StructuralPartialEq for StringResultCode
Auto Trait Implementations§
impl RefUnwindSafe for StringResultCode
impl Send for StringResultCode
impl Sync for StringResultCode
impl Unpin for StringResultCode
impl UnwindSafe for StringResultCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more