Skip to main content

QUuid

Struct QUuid 

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

C++ class: QUuid.

Implementations§

Source§

impl QUuid

Source

pub unsafe fn copy_from(&self, other: impl CastInto<Ref<QUuid>>) -> Ref<QUuid>

Calls C++ function: QUuid& QUuid::operator=(const QUuid& other).

Source

pub unsafe fn create_uuid() -> CppBox<QUuid>

Calls C++ function: static QUuid QUuid::createUuid().

Source

pub unsafe fn create_uuid_v3_q_uuid_q_byte_array( ns: impl CastInto<Ref<QUuid>>, base_data: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QUuid>

Calls C++ function: static QUuid QUuid::createUuidV3(const QUuid& ns, const QByteArray& baseData).

Source

pub unsafe fn create_uuid_v3_q_uuid_q_string( ns: impl CastInto<Ref<QUuid>>, base_data: impl CastInto<Ref<QString>>, ) -> CppBox<QUuid>

Calls C++ function: static QUuid QUuid::createUuidV3(const QUuid& ns, const QString& baseData).

Source

pub unsafe fn create_uuid_v5_q_uuid_q_byte_array( ns: impl CastInto<Ref<QUuid>>, base_data: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QUuid>

Calls C++ function: static QUuid QUuid::createUuidV5(const QUuid& ns, const QByteArray& baseData).

Source

pub unsafe fn create_uuid_v5_q_uuid_q_string( ns: impl CastInto<Ref<QUuid>>, base_data: impl CastInto<Ref<QString>>, ) -> CppBox<QUuid>

Calls C++ function: static QUuid QUuid::createUuidV5(const QUuid& ns, const QString& baseData).

Source

pub unsafe fn data1(&self) -> c_uint

Returns the value of the data1 field.

Source

pub unsafe fn data2(&self) -> c_ushort

Returns the value of the data2 field.

Source

pub unsafe fn data3(&self) -> c_ushort

Returns the value of the data3 field.

Source

pub unsafe fn from_rfc4122( arg1: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QUuid>

Calls C++ function: static QUuid QUuid::fromRfc4122(const QByteArray& arg1).

Source

pub unsafe fn from_string_q_string_view( string: impl CastInto<Ref<QStringView>>, ) -> CppBox<QUuid>

Calls C++ function: static QUuid QUuid::fromString(QStringView string).

Source

pub unsafe fn from_string_q_latin1_string( string: impl CastInto<Ref<QLatin1String>>, ) -> CppBox<QUuid>

Calls C++ function: static QUuid QUuid::fromString(QLatin1String string).

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QUuid::isNull() const.

Source

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

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

Source

pub unsafe fn from_uint2_ushort8_uchar( l: c_uint, w1: c_ushort, w2: c_ushort, b1: c_uchar, b2: c_uchar, b3: c_uchar, b4: c_uchar, b5: c_uchar, b6: c_uchar, b7: c_uchar, b8: c_uchar, ) -> CppBox<QUuid>

Calls C++ function: [constructor] void QUuid::QUuid(unsigned int l, unsigned short w1, unsigned short w2, unsigned char b1, unsigned char b2, unsigned char b3, unsigned char b4, unsigned char b5, unsigned char b6, unsigned char b7, unsigned char b8).

Source

pub unsafe fn from_q_string(arg1: impl CastInto<Ref<QString>>) -> CppBox<QUuid>

Calls C++ function: [constructor] void QUuid::QUuid(const QString& arg1).

Source

pub unsafe fn from_char(arg1: *const c_char) -> CppBox<QUuid>

Calls C++ function: [constructor] void QUuid::QUuid(const char* arg1).

Source

pub unsafe fn from_q_byte_array( arg1: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QUuid>

Calls C++ function: [constructor] void QUuid::QUuid(const QByteArray& arg1).

Source

pub unsafe fn new_copy(other: impl CastInto<Ref<QUuid>>) -> CppBox<QUuid>

Calls C++ function: [constructor] void QUuid::QUuid(const QUuid& other).

Source

pub unsafe fn set_data1(&self, value: c_uint)

Sets the value of the data1 field.

Source

pub unsafe fn set_data2(&self, value: c_ushort)

Sets the value of the data2 field.

Source

pub unsafe fn set_data3(&self, value: c_ushort)

Sets the value of the data3 field.

Source

pub unsafe fn to_byte_array_0a(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QUuid::toByteArray() const.

Source

pub unsafe fn to_byte_array_1a(&self, mode: StringFormat) -> CppBox<QByteArray>

Calls C++ function: QByteArray QUuid::toByteArray(QUuid::StringFormat mode) const.

Source

pub unsafe fn to_rfc4122(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QUuid::toRfc4122() const.

Source

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

Calls C++ function: QString QUuid::toString() const.

Source

pub unsafe fn to_string_1a(&self, mode: StringFormat) -> CppBox<QString>

Calls C++ function: QString QUuid::toString(QUuid::StringFormat mode) const.

Source

pub unsafe fn variant(&self) -> Variant

Calls C++ function: QUuid::Variant QUuid::variant() const.

Source

pub unsafe fn version(&self) -> Version

Calls C++ function: QUuid::Version QUuid::version() const.

Trait Implementations§

Source§

impl CppDeletable for QUuid

Source§

unsafe fn delete(&self)

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

Source§

impl Ge<Ref<QUuid>> for QUuid

Source§

unsafe fn ge(&self, rhs: &Ref<QUuid>) -> bool

Calls C++ function: bool operator>=(const QUuid& lhs, const QUuid& rhs).

Source§

impl Gt<Ref<QUuid>> for QUuid

Source§

unsafe fn gt(&self, other: &Ref<QUuid>) -> bool

Calls C++ function: bool QUuid::operator>(const QUuid& other) const.

Source§

impl Le<Ref<QUuid>> for QUuid

Source§

unsafe fn le(&self, rhs: &Ref<QUuid>) -> bool

Calls C++ function: bool operator<=(const QUuid& lhs, const QUuid& rhs).

Source§

impl Lt<Ref<QUuid>> for QUuid

Source§

unsafe fn lt(&self, other: &Ref<QUuid>) -> bool

Calls C++ function: bool QUuid::operator<(const QUuid& other) const.

Source§

impl PartialEq<Ref<QUuid>> for QUuid

Source§

fn eq(&self, orig: &Ref<QUuid>) -> bool

Calls C++ function: bool QUuid::operator==(const QUuid& orig) const.

1.0.0 (const: unstable) · 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§

§

impl Freeze for QUuid

§

impl RefUnwindSafe for QUuid

§

impl Send for QUuid

§

impl Sync for QUuid

§

impl Unpin for QUuid

§

impl UnsafeUnpin for QUuid

§

impl UnwindSafe for QUuid

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.