[−][src]Struct gdnative::RandomNumberGenerator
core class RandomNumberGenerator
inherits Reference
(reference counted).
Official documentation
See the documentation of this class in the Godot engine's official documentation.
Memory management
The lifetime of this object is automatically managed through reference counting.
Class hierarchy
RandomNumberGenerator inherits methods from:
Implementations
impl RandomNumberGenerator
[src]
pub fn new() -> RandomNumberGenerator
[src]
pub fn new_ref(&self) -> RandomNumberGenerator
[src]
Creates a new reference to the same reference-counted object.
pub fn get_seed(&mut self) -> i64
[src]
pub fn randf(&mut self) -> f64
[src]
pub fn randf_range(&mut self, from: f64, to: f64) -> f64
[src]
pub fn randfn(&mut self, mean: f64, deviation: f64) -> f64
[src]
pub fn randi(&mut self) -> i64
[src]
pub fn randi_range(&mut self, from: i64, to: i64) -> i64
[src]
pub fn randomize(&mut self)
[src]
pub fn set_seed(&mut self, seed: i64)
[src]
pub fn init_ref(&mut self) -> bool
[src]
Inherited from Reference.
pub fn to_reference(&self) -> Reference
[src]
Up-cast.
pub fn to_object(&self) -> Object
[src]
Up-cast.
pub fn cast<T>(&self) -> Option<T> where
T: GodotObject,
[src]
T: GodotObject,
Generic dynamic cast.
Methods from Deref<Target = Reference>
pub fn new_ref(&self) -> Reference
[src]
Creates a new reference to the same reference-counted object.
pub fn init_ref(&mut self) -> bool
[src]
pub fn to_object(&self) -> Object
[src]
Up-cast.
pub fn cast<T>(&self) -> Option<T> where
T: GodotObject,
[src]
T: GodotObject,
Generic dynamic cast.
Trait Implementations
impl Clone for RandomNumberGenerator
[src]
fn clone(&self) -> RandomNumberGenerator
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RandomNumberGenerator
[src]
impl Deref for RandomNumberGenerator
[src]
impl DerefMut for RandomNumberGenerator
[src]
impl Drop for RandomNumberGenerator
[src]
impl FromVariant for RandomNumberGenerator
[src]
fn from_variant(
variant: &Variant
) -> Result<RandomNumberGenerator, FromVariantError>
[src]
variant: &Variant
) -> Result<RandomNumberGenerator, FromVariantError>
impl GodotObject for RandomNumberGenerator
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut c_void) -> RandomNumberGenerator
[src]
unsafe fn from_return_position_sys(obj: *mut c_void) -> RandomNumberGenerator
[src]
unsafe fn to_sys(&self) -> *mut c_void
[src]
unsafe fn claim(&self) -> Self
[src]
impl Instanciable for RandomNumberGenerator
[src]
fn construct() -> RandomNumberGenerator
[src]
impl ToVariant for RandomNumberGenerator
[src]
fn to_variant(&self) -> Variant
[src]
Auto Trait Implementations
impl RefUnwindSafe for RandomNumberGenerator
impl !Send for RandomNumberGenerator
impl !Sync for RandomNumberGenerator
impl Unpin for RandomNumberGenerator
impl UnwindSafe for RandomNumberGenerator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Export for T where
T: GodotObject + ToVariant,
[src]
T: GodotObject + ToVariant,
type Hint = ()
A type-specific hint type that is valid for the type being exported.
fn export_info(_hint: Option<<T as Export>::Hint>) -> ExportInfo
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,