Skip to main content

QTextStream

Struct QTextStream 

Source
pub struct QTextStream { /* private fields */ }
Expand description

C++ class: QTextStream.

Implementations§

Source§

impl QTextStream

Source

pub unsafe fn at_end(&self) -> bool

Calls C++ function: bool QTextStream::atEnd() const.

Source

pub unsafe fn auto_detect_unicode(&self) -> bool

Calls C++ function: bool QTextStream::autoDetectUnicode() const.

Source

pub unsafe fn codec(&self) -> Ptr<QTextCodec>

Calls C++ function: QTextCodec* QTextStream::codec() const.

Source

pub unsafe fn device(&self) -> QPtr<QIODevice>

Calls C++ function: QIODevice* QTextStream::device() const.

Source

pub unsafe fn field_alignment(&self) -> FieldAlignment

Calls C++ function: QTextStream::FieldAlignment QTextStream::fieldAlignment() const.

Source

pub unsafe fn field_width(&self) -> c_int

Calls C++ function: int QTextStream::fieldWidth() const.

Source

pub unsafe fn flush(&self)

Calls C++ function: void QTextStream::flush().

Source

pub unsafe fn generate_byte_order_mark(&self) -> bool

Calls C++ function: bool QTextStream::generateByteOrderMark() const.

Source

pub unsafe fn integer_base(&self) -> c_int

Calls C++ function: int QTextStream::integerBase() const.

Source

pub unsafe fn locale(&self) -> CppBox<QLocale>

Calls C++ function: QLocale QTextStream::locale() const.

Source

pub unsafe fn new() -> CppBox<QTextStream>

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

Source

pub unsafe fn from_q_io_device( device: impl CastInto<Ptr<QIODevice>>, ) -> CppBox<QTextStream>

Calls C++ function: [constructor] void QTextStream::QTextStream(QIODevice* device).

Source

pub unsafe fn from_q_string_q_flags_open_mode_flag( string: impl CastInto<Ptr<QString>>, open_mode: QFlags<OpenModeFlag>, ) -> CppBox<QTextStream>

Calls C++ function: [constructor] void QTextStream::QTextStream(QString* string, QFlags<QIODevice::OpenModeFlag> openMode = …).

Source

pub unsafe fn from_q_byte_array_q_flags_open_mode_flag( array: impl CastInto<Ptr<QByteArray>>, open_mode: QFlags<OpenModeFlag>, ) -> CppBox<QTextStream>

Calls C++ function: [constructor] void QTextStream::QTextStream(QByteArray* array, QFlags<QIODevice::OpenModeFlag> openMode = …).

Source

pub unsafe fn from_q_byte_array_q_flags_open_mode_flag2( array: impl CastInto<Ref<QByteArray>>, open_mode: QFlags<OpenModeFlag>, ) -> CppBox<QTextStream>

Calls C++ function: [constructor] void QTextStream::QTextStream(const QByteArray& array, QFlags<QIODevice::OpenModeFlag> openMode = …).

Source

pub unsafe fn from_q_string( string: impl CastInto<Ptr<QString>>, ) -> CppBox<QTextStream>

Calls C++ function: [constructor] void QTextStream::QTextStream(QString* string).

Source

pub unsafe fn from_q_byte_array( array: impl CastInto<Ptr<QByteArray>>, ) -> CppBox<QTextStream>

Calls C++ function: [constructor] void QTextStream::QTextStream(QByteArray* array).

Source

pub unsafe fn from_q_byte_array2( array: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QTextStream>

Calls C++ function: [constructor] void QTextStream::QTextStream(const QByteArray& array).

Source

pub unsafe fn number_flags(&self) -> QFlags<NumberFlag>

Calls C++ function: QFlags<QTextStream::NumberFlag> QTextStream::numberFlags() const.

Source

pub unsafe fn pad_char(&self) -> CppBox<QChar>

Calls C++ function: QChar QTextStream::padChar() const.

Source

pub unsafe fn pos(&self) -> c_longlong

Calls C++ function: long long QTextStream::pos() const.

Source

pub unsafe fn read(&self, maxlen: c_longlong) -> CppBox<QString>

Calls C++ function: QString QTextStream::read(long long maxlen).

Source

pub unsafe fn read_all(&self) -> CppBox<QString>

Calls C++ function: QString QTextStream::readAll().

Source

pub unsafe fn read_line_1a(&self, maxlen: c_longlong) -> CppBox<QString>

Calls C++ function: QString QTextStream::readLine(long long maxlen = …).

Source

pub unsafe fn read_line_0a(&self) -> CppBox<QString>

Calls C++ function: QString QTextStream::readLine().

Source

pub unsafe fn read_line_into_2a( &self, line: impl CastInto<Ptr<QString>>, maxlen: c_longlong, ) -> bool

Calls C++ function: bool QTextStream::readLineInto(QString* line, long long maxlen = …).

Source

pub unsafe fn read_line_into_1a( &self, line: impl CastInto<Ptr<QString>>, ) -> bool

Calls C++ function: bool QTextStream::readLineInto(QString* line).

Source

pub unsafe fn real_number_notation(&self) -> RealNumberNotation

Calls C++ function: QTextStream::RealNumberNotation QTextStream::realNumberNotation() const.

Source

pub unsafe fn real_number_precision(&self) -> c_int

Calls C++ function: int QTextStream::realNumberPrecision() const.

Source

pub unsafe fn reset(&self)

Calls C++ function: void QTextStream::reset().

Source

pub unsafe fn reset_status(&self)

Calls C++ function: void QTextStream::resetStatus().

Source

pub unsafe fn seek(&self, pos: c_longlong) -> bool

Calls C++ function: bool QTextStream::seek(long long pos).

Source

pub unsafe fn set_auto_detect_unicode(&self, enabled: bool)

Calls C++ function: void QTextStream::setAutoDetectUnicode(bool enabled).

Source

pub unsafe fn set_codec_q_text_codec( &self, codec: impl CastInto<Ptr<QTextCodec>>, )

Calls C++ function: void QTextStream::setCodec(QTextCodec* codec).

Source

pub unsafe fn set_codec_char(&self, codec_name: *const c_char)

Calls C++ function: void QTextStream::setCodec(const char* codecName).

Source

pub unsafe fn set_device(&self, device: impl CastInto<Ptr<QIODevice>>)

Calls C++ function: void QTextStream::setDevice(QIODevice* device).

Source

pub unsafe fn set_field_alignment(&self, alignment: FieldAlignment)

Calls C++ function: void QTextStream::setFieldAlignment(QTextStream::FieldAlignment alignment).

Source

pub unsafe fn set_field_width(&self, width: c_int)

Calls C++ function: void QTextStream::setFieldWidth(int width).

Source

pub unsafe fn set_generate_byte_order_mark(&self, generate: bool)

Calls C++ function: void QTextStream::setGenerateByteOrderMark(bool generate).

Source

pub unsafe fn set_integer_base(&self, base: c_int)

Calls C++ function: void QTextStream::setIntegerBase(int base).

Source

pub unsafe fn set_locale(&self, locale: impl CastInto<Ref<QLocale>>)

Calls C++ function: void QTextStream::setLocale(const QLocale& locale).

Source

pub unsafe fn set_number_flags(&self, flags: QFlags<NumberFlag>)

Calls C++ function: void QTextStream::setNumberFlags(QFlags<QTextStream::NumberFlag> flags).

Source

pub unsafe fn set_pad_char(&self, ch: impl CastInto<Ref<QChar>>)

Calls C++ function: void QTextStream::setPadChar(QChar ch).

Source

pub unsafe fn set_real_number_notation(&self, notation: RealNumberNotation)

Calls C++ function: void QTextStream::setRealNumberNotation(QTextStream::RealNumberNotation notation).

Source

pub unsafe fn set_real_number_precision(&self, precision: c_int)

Calls C++ function: void QTextStream::setRealNumberPrecision(int precision).

Source

pub unsafe fn set_status(&self, status: Status)

Calls C++ function: void QTextStream::setStatus(QTextStream::Status status).

Source

pub unsafe fn set_string_2a( &self, string: impl CastInto<Ptr<QString>>, open_mode: QFlags<OpenModeFlag>, )

Calls C++ function: void QTextStream::setString(QString* string, QFlags<QIODevice::OpenModeFlag> openMode = …).

Source

pub unsafe fn set_string_1a(&self, string: impl CastInto<Ptr<QString>>)

Calls C++ function: void QTextStream::setString(QString* string).

Source

pub unsafe fn shl_short(&self, i: c_short) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(short i).

Source

pub unsafe fn shl_ushort(&self, i: c_ushort) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(unsigned short i).

Source

pub unsafe fn shl_int(&self, i: c_int) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(int i).

Source

pub unsafe fn shl_uint(&self, i: c_uint) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(unsigned int i).

Source

pub unsafe fn shl_long(&self, i: c_long) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(long i).

Source

pub unsafe fn shl_ulong(&self, i: c_ulong) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(unsigned long i).

Source

pub unsafe fn shl_longlong(&self, i: c_longlong) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(long long i).

Source

pub unsafe fn shl_ulonglong(&self, i: c_ulonglong) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(unsigned long long i).

Source

pub unsafe fn shl_double(&self, f: c_double) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(double f).

Source

pub unsafe fn shr_short(&self, i: *mut c_short) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(short& i).

Source

pub unsafe fn shr_ushort(&self, i: *mut c_ushort) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(unsigned short& i).

Source

pub unsafe fn shr_int(&self, i: *mut c_int) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(int& i).

Source

pub unsafe fn shr_uint(&self, i: *mut c_uint) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(unsigned int& i).

Source

pub unsafe fn shr_long(&self, i: *mut c_long) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(long& i).

Source

pub unsafe fn shr_ulong(&self, i: *mut c_ulong) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(unsigned long& i).

Source

pub unsafe fn shr_longlong(&self, i: *mut c_longlong) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(long long& i).

Source

pub unsafe fn shr_ulonglong(&self, i: *mut c_ulonglong) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(unsigned long long& i).

Source

pub unsafe fn shr_double(&self, f: *mut c_double) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(double& f).

Source

pub unsafe fn shr_char(&self, c: *mut c_char) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(char* c).

Source

pub unsafe fn skip_white_space(&self)

Calls C++ function: void QTextStream::skipWhiteSpace().

Source

pub unsafe fn status(&self) -> Status

Calls C++ function: QTextStream::Status QTextStream::status() const.

Source

pub unsafe fn string(&self) -> Ptr<QString>

Calls C++ function: QString* QTextStream::string() const.

Trait Implementations§

Source§

impl CppDeletable for QTextStream

Source§

unsafe fn delete(&self)

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

Source§

impl Shl<*const c_void> for &QTextStream

Source§

fn shl(self, ptr: *const c_void) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(const void* ptr).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shl<*const i8> for &QTextStream

Source§

fn shl(self, c: *const c_char) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(const char* c).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shl<Ref<QByteArray>> for &QTextStream

Source§

fn shl(self, array: Ref<QByteArray>) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(const QByteArray& array).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shl<Ref<QChar>> for &QTextStream

Source§

fn shl(self, ch: Ref<QChar>) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(QChar ch).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shl<Ref<QLatin1String>> for &QTextStream

Source§

fn shl(self, s: Ref<QLatin1String>) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(QLatin1String s).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shl<Ref<QString>> for &QTextStream

Source§

fn shl(self, s: Ref<QString>) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(const QString& s).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shl<Ref<QStringRef>> for &QTextStream

Source§

fn shl(self, s: Ref<QStringRef>) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(const QStringRef& s).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shl<Ref<QStringView>> for &QTextStream

Source§

fn shl(self, s: Ref<QStringView>) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(QStringView s).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shl<Ref<QTextStreamManipulator>> for &QTextStream

Source§

fn shl(self, m: Ref<QTextStreamManipulator>) -> Ref<QTextStream>

Calls C++ function: QTextStream& operator<<(QTextStream& s, QTextStreamManipulator m).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shl<f32> for &QTextStream

Source§

fn shl(self, f: c_float) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(float f).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shl<i8> for &QTextStream

Source§

fn shl(self, ch: c_char) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator<<(char ch).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the << operator.
Source§

impl Shr<*mut f32> for &QTextStream

Source§

fn shr(self, f: *mut c_float) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(float& f).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the >> operator.
Source§

impl Shr<*mut i8> for &QTextStream

Source§

fn shr(self, ch: *mut c_char) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(char& ch).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the >> operator.
Source§

impl Shr<Ref<QByteArray>> for &QTextStream

Source§

fn shr(self, array: Ref<QByteArray>) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(QByteArray& array).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the >> operator.
Source§

impl Shr<Ref<QChar>> for &QTextStream

Source§

fn shr(self, ch: Ref<QChar>) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(QChar& ch).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the >> operator.
Source§

impl Shr<Ref<QString>> for &QTextStream

Source§

fn shr(self, s: Ref<QString>) -> Ref<QTextStream>

Calls C++ function: QTextStream& QTextStream::operator>>(QString& s).

Source§

type Output = Ref<QTextStream>

The resulting type after applying the >> operator.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.