pub struct QRandomGenerator { /* private fields */ }Expand description
C++ class: QRandomGenerator.
Implementations§
Source§impl QRandomGenerator
impl QRandomGenerator
Sourcepub unsafe fn bounded_double(&self, highest: c_double) -> c_double
pub unsafe fn bounded_double(&self, highest: c_double) -> c_double
Calls C++ function: double QRandomGenerator::bounded(double highest).
Sourcepub unsafe fn bounded_uint(&self, highest: c_uint) -> c_uint
pub unsafe fn bounded_uint(&self, highest: c_uint) -> c_uint
Calls C++ function: unsigned int QRandomGenerator::bounded(unsigned int highest).
Sourcepub unsafe fn bounded_2_uint(&self, lowest: c_uint, highest: c_uint) -> c_uint
pub unsafe fn bounded_2_uint(&self, lowest: c_uint, highest: c_uint) -> c_uint
Calls C++ function: unsigned int QRandomGenerator::bounded(unsigned int lowest, unsigned int highest).
Sourcepub unsafe fn bounded_int(&self, highest: c_int) -> c_int
pub unsafe fn bounded_int(&self, highest: c_int) -> c_int
Calls C++ function: int QRandomGenerator::bounded(int highest).
Sourcepub unsafe fn bounded_2_int(&self, lowest: c_int, highest: c_int) -> c_int
pub unsafe fn bounded_2_int(&self, lowest: c_int, highest: c_int) -> c_int
Calls C++ function: int QRandomGenerator::bounded(int lowest, int highest).
Sourcepub unsafe fn call(&self) -> c_uint
pub unsafe fn call(&self) -> c_uint
Calls C++ function: unsigned int QRandomGenerator::operator()().
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QRandomGenerator>>,
) -> Ref<QRandomGenerator>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QRandomGenerator>>, ) -> Ref<QRandomGenerator>
Calls C++ function: QRandomGenerator& QRandomGenerator::operator=(const QRandomGenerator& other).
Sourcepub unsafe fn discard(&self, z: c_ulonglong)
pub unsafe fn discard(&self, z: c_ulonglong)
Calls C++ function: void QRandomGenerator::discard(unsigned long long z).
Sourcepub unsafe fn generate_0a(&self) -> c_uint
pub unsafe fn generate_0a(&self) -> c_uint
Calls C++ function: unsigned int QRandomGenerator::generate().
Sourcepub unsafe fn generate_2a(&self, begin: *mut c_uint, end: *mut c_uint)
pub unsafe fn generate_2a(&self, begin: *mut c_uint, end: *mut c_uint)
Calls C++ function: void QRandomGenerator::generate(unsigned int* begin, unsigned int* end).
Sourcepub unsafe fn generate64(&self) -> c_ulonglong
pub unsafe fn generate64(&self) -> c_ulonglong
Calls C++ function: unsigned long long QRandomGenerator::generate64().
Sourcepub unsafe fn generate_double(&self) -> c_double
pub unsafe fn generate_double(&self) -> c_double
Calls C++ function: double QRandomGenerator::generateDouble().
Sourcepub unsafe fn global() -> Ptr<QRandomGenerator>
pub unsafe fn global() -> Ptr<QRandomGenerator>
Calls C++ function: static QRandomGenerator* QRandomGenerator::global().
Sourcepub unsafe fn from_uint(seed_value: c_uint) -> CppBox<QRandomGenerator>
pub unsafe fn from_uint(seed_value: c_uint) -> CppBox<QRandomGenerator>
Calls C++ function: [constructor] void QRandomGenerator::QRandomGenerator(unsigned int seedValue = …).
Sourcepub unsafe fn from_uint_longlong(
seed_buffer: *const c_uint,
len: c_longlong,
) -> CppBox<QRandomGenerator>
pub unsafe fn from_uint_longlong( seed_buffer: *const c_uint, len: c_longlong, ) -> CppBox<QRandomGenerator>
Calls C++ function: [constructor] void QRandomGenerator::QRandomGenerator(const unsigned int* seedBuffer, long long len).
Sourcepub unsafe fn from_2_uint(
begin: *const c_uint,
end: *const c_uint,
) -> CppBox<QRandomGenerator>
pub unsafe fn from_2_uint( begin: *const c_uint, end: *const c_uint, ) -> CppBox<QRandomGenerator>
Calls C++ function: [constructor] void QRandomGenerator::QRandomGenerator(const unsigned int* begin, const unsigned int* end).
Sourcepub unsafe fn new() -> CppBox<QRandomGenerator>
pub unsafe fn new() -> CppBox<QRandomGenerator>
Calls C++ function: [constructor] void QRandomGenerator::QRandomGenerator().
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QRandomGenerator>>,
) -> CppBox<QRandomGenerator>
pub unsafe fn new_copy( other: impl CastInto<Ref<QRandomGenerator>>, ) -> CppBox<QRandomGenerator>
Calls C++ function: [constructor] void QRandomGenerator::QRandomGenerator(const QRandomGenerator& other).
Sourcepub unsafe fn securely_seeded() -> CppBox<QRandomGenerator>
pub unsafe fn securely_seeded() -> CppBox<QRandomGenerator>
Calls C++ function: static QRandomGenerator QRandomGenerator::securelySeeded().
Sourcepub unsafe fn seed_1a(&self, s: c_uint)
pub unsafe fn seed_1a(&self, s: c_uint)
Calls C++ function: void QRandomGenerator::seed(unsigned int s = …).
Sourcepub unsafe fn system() -> Ptr<QRandomGenerator>
pub unsafe fn system() -> Ptr<QRandomGenerator>
Calls C++ function: static QRandomGenerator* QRandomGenerator::system().
Trait Implementations§
Source§impl CppDeletable for QRandomGenerator
impl CppDeletable for QRandomGenerator
Source§impl StaticDowncast<QRandomGenerator64> for QRandomGenerator
impl StaticDowncast<QRandomGenerator64> for QRandomGenerator
Source§unsafe fn static_downcast(ptr: Ptr<QRandomGenerator>) -> Ptr<QRandomGenerator64>
unsafe fn static_downcast(ptr: Ptr<QRandomGenerator>) -> Ptr<QRandomGenerator64>
Calls C++ function: QRandomGenerator64* static_cast<QRandomGenerator64*>(QRandomGenerator* ptr).
Source§impl StaticUpcast<QRandomGenerator> for QRandomGenerator64
impl StaticUpcast<QRandomGenerator> for QRandomGenerator64
Source§unsafe fn static_upcast(ptr: Ptr<QRandomGenerator64>) -> Ptr<QRandomGenerator>
unsafe fn static_upcast(ptr: Ptr<QRandomGenerator64>) -> Ptr<QRandomGenerator>
Calls C++ function: QRandomGenerator* static_cast<QRandomGenerator*>(QRandomGenerator64* ptr).