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.

C++ documentation:

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

source

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).

C++ documentation:

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

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).

C++ documentation:

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.

source

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).

C++ documentation:

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

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.

C++ documentation:

Converts a Latin-1 character to an 8-bit ASCII representation of the character.

source

pub unsafe fn unicode(&self) -> c_ushort

Converts a Latin-1 character to an 16-bit-encoded Unicode representation of the character.

Calls C++ function: unsigned short QLatin1Char::unicode() const.

C++ documentation:

Converts a Latin-1 character to an 16-bit-encoded Unicode representation of the character.

Trait Implementations§

source§

impl CppDeletable for QLatin1Char

source§

unsafe fn delete(&self)

The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.

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

C++ documentation:

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

source§

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

source§

unsafe fn gt(&self, rhs: &c_char) -> bool

Calls C++ function: bool operator>(QLatin1Char lhs, char rhs).

source§

impl Le<i8> for QLatin1Char

source§

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

source§

unsafe fn lt(&self, rhs: &c_char) -> bool

Calls C++ function: bool operator<(QLatin1Char lhs, char rhs).

source§

impl PartialEq<i8> for QLatin1Char

source§

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.

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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>,

§

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>,

§

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.