Struct tuna::Float32 [−][src]
pub struct Float32 { /* fields omitted */ }
Expand description
The definition of a float variable
Implementations
impl Float32
[src]
impl Float32
[src]pub const fn new(
category: &'static str,
name: &'static str,
default: f32,
min: Option<f32>,
max: Option<f32>
) -> Self
[src]
pub const fn new(
category: &'static str,
name: &'static str,
default: f32,
min: Option<f32>,
max: Option<f32>
) -> Self
[src]Define a new float variable that can be registered with tuna
pub fn register(&self)
[src]
pub fn register(&self)
[src]Explicitly register the float with tuna. This is not required, but it’ll reduce risk of stuttering when variables get registered.
Trait Implementations
impl AsTuneable for Float32
[src]
impl AsTuneable for Float32
[src]impl Copy for Float32
[src]
Auto Trait Implementations
impl RefUnwindSafe for Float32
impl Send for Float32
impl Sync for Float32
impl Unpin for Float32
impl UnwindSafe for Float32
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more