Struct 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

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

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.