Struct qt_core::QLatin1Char
source · #[repr(C)]pub struct QLatin1Char { /* private fields */ }
Expand description
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
C++ class: QLatin1Char
.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
This class is only useful to construct a QChar with 8-bit character.
Implementations§
source§impl QLatin1Char
impl QLatin1Char
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QLatin1Char>>
) -> Ref<QLatin1Char>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QLatin1Char>> ) -> Ref<QLatin1Char>
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Calls C++ function: QLatin1Char& QLatin1Char::operator=(const QLatin1Char& other)
.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
This class is only useful to construct a QChar with 8-bit character.
sourcepub unsafe fn new(c: c_char) -> CppBox<QLatin1Char>
pub unsafe fn new(c: c_char) -> CppBox<QLatin1Char>
Constructs a Latin-1 character for c. This constructor should be used when the encoding of the input character is known to be Latin-1.
Calls C++ function: [constructor] void QLatin1Char::QLatin1Char(char c)
.
Constructs a Latin-1 character for c. This constructor should be used when the encoding of the input character is known to be Latin-1.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QLatin1Char>>
) -> CppBox<QLatin1Char>
pub unsafe fn new_copy( other: impl CastInto<Ref<QLatin1Char>> ) -> CppBox<QLatin1Char>
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Calls C++ function: [constructor] void QLatin1Char::QLatin1Char(const QLatin1Char& other)
.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
This class is only useful to construct a QChar with 8-bit character.
sourcepub unsafe fn to_latin1(&self) -> c_char
pub unsafe fn to_latin1(&self) -> c_char
Converts a Latin-1 character to an 8-bit ASCII representation of the character.
Calls C++ function: char QLatin1Char::toLatin1() const
.
Converts a Latin-1 character to an 8-bit ASCII representation of the character.
Trait Implementations§
source§impl CppDeletable for QLatin1Char
impl CppDeletable for QLatin1Char
source§unsafe fn delete(&self)
unsafe fn delete(&self)
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Calls C++ function: [destructor] void QLatin1Char::~QLatin1Char()
.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
This class is only useful to construct a QChar with 8-bit character.
source§impl Ge<i8> for QLatin1Char
impl Ge<i8> for QLatin1Char
source§unsafe fn ge(&self, rhs: &c_char) -> bool
unsafe fn ge(&self, rhs: &c_char) -> bool
Returns true
if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false
.
Calls C++ function: bool operator>=(QLatin1Char lhs, char rhs)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator>=(QChar c1, QChar c2)
:
Returns true
if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false
.
source§impl Gt<i8> for QLatin1Char
impl Gt<i8> for QLatin1Char
source§impl Le<i8> for QLatin1Char
impl Le<i8> for QLatin1Char
source§unsafe fn le(&self, rhs: &c_char) -> bool
unsafe fn le(&self, rhs: &c_char) -> bool
Returns true
if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false
.
Calls C++ function: bool operator<=(QLatin1Char lhs, char rhs)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator<=(QChar c1, QChar c2)
:
Returns true
if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false
.
source§impl Lt<i8> for QLatin1Char
impl Lt<i8> for QLatin1Char
source§impl PartialEq<i8> for QLatin1Char
impl PartialEq<i8> for QLatin1Char
source§fn eq(&self, rhs: &c_char) -> bool
fn eq(&self, rhs: &c_char) -> bool
Returns true
if c1 and c2 are the same Unicode character; otherwise returns false
.
Calls C++ function: bool operator==(QLatin1Char lhs, char rhs)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator==(QChar c1, QChar c2)
:
Returns true
if c1 and c2 are the same Unicode character; otherwise returns false
.