pub struct QTextDecoder { /* private fields */ }Expand description
C++ class: QTextDecoder.
Implementations§
Source§impl QTextDecoder
impl QTextDecoder
Sourcepub unsafe fn has_failure(&self) -> bool
pub unsafe fn has_failure(&self) -> bool
Calls C++ function: bool QTextDecoder::hasFailure() const.
Sourcepub unsafe fn needs_more_data(&self) -> bool
pub unsafe fn needs_more_data(&self) -> bool
Calls C++ function: bool QTextDecoder::needsMoreData() const.
Sourcepub unsafe fn new_1a(
codec: impl CastInto<Ptr<QTextCodec>>,
) -> CppBox<QTextDecoder>
pub unsafe fn new_1a( codec: impl CastInto<Ptr<QTextCodec>>, ) -> CppBox<QTextDecoder>
Calls C++ function: [constructor] void QTextDecoder::QTextDecoder(const QTextCodec* codec).
Sourcepub unsafe fn new_2a(
codec: impl CastInto<Ptr<QTextCodec>>,
flags: QFlags<ConversionFlag>,
) -> CppBox<QTextDecoder>
pub unsafe fn new_2a( codec: impl CastInto<Ptr<QTextCodec>>, flags: QFlags<ConversionFlag>, ) -> CppBox<QTextDecoder>
Calls C++ function: [constructor] void QTextDecoder::QTextDecoder(const QTextCodec* codec, QFlags<QTextCodec::ConversionFlag> flags).
Sourcepub unsafe fn to_unicode_2a(
&self,
chars: *const c_char,
len: c_int,
) -> CppBox<QString>
pub unsafe fn to_unicode_2a( &self, chars: *const c_char, len: c_int, ) -> CppBox<QString>
Calls C++ function: QString QTextDecoder::toUnicode(const char* chars, int len).
Sourcepub unsafe fn to_unicode_1a(
&self,
ba: impl CastInto<Ref<QByteArray>>,
) -> CppBox<QString>
pub unsafe fn to_unicode_1a( &self, ba: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QString>
Calls C++ function: QString QTextDecoder::toUnicode(const QByteArray& ba).
Trait Implementations§
Source§impl CppDeletable for QTextDecoder
impl CppDeletable for QTextDecoder
Auto Trait Implementations§
impl Freeze for QTextDecoder
impl RefUnwindSafe for QTextDecoder
impl Send for QTextDecoder
impl Sync for QTextDecoder
impl Unpin for QTextDecoder
impl UnsafeUnpin for QTextDecoder
impl UnwindSafe for QTextDecoder
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