pub struct Input {
pub name: String,
pub default: f32,
}Expand description
A named quantity a program may drive from outside (a source’s external values: the weather, a switch). default is
what a renderer uses when nothing drives it.
Fields§
§name: StringThe source’s name for it.
default: f32The value when nothing sets it.
Trait Implementations§
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Forget for Input
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more