[][src]Struct qt_core::QLatin1Char

#[repr(C)]pub struct QLatin1Char { /* fields omitted */ }

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.

Methods

impl QLatin1Char[src]

pub unsafe fn copy_from(
    &self,
    other: impl CastInto<Ref<QLatin1Char>>
) -> Ref<QLatin1Char>
[src]

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.

pub unsafe fn new(c: c_char) -> CppBox<QLatin1Char>[src]

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.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QLatin1Char>>
) -> CppBox<QLatin1Char>
[src]

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.

pub unsafe fn to_latin1(&self) -> c_char[src]

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.

pub unsafe fn unicode(&self) -> c_ushort[src]

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

impl CppDeletable for QLatin1Char[src]

unsafe fn delete(&self)[src]

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.

impl Ge<i8> for QLatin1Char[src]

unsafe fn ge(&self, rhs: &c_char) -> bool[src]

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.

impl Gt<i8> for QLatin1Char[src]

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

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

impl Le<i8> for QLatin1Char[src]

unsafe fn le(&self, rhs: &c_char) -> bool[src]

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.

impl Lt<i8> for QLatin1Char[src]

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

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

impl PartialEq<i8> for QLatin1Char[src]

fn eq(&self, rhs: &c_char) -> bool[src]

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.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.