pub struct Params(pub [u64; 32]);Expand description
the parameter block (FX_NSLOTS 8-byte slots)
Tuple Fields§
§0: [u64; 32]Implementations§
Source§impl Params
impl Params
Sourcepub fn int(&self, slot: usize, lo: i32, hi: i32) -> i32
pub fn int(&self, slot: usize, lo: i32, hi: i32) -> i32
the i64 slot clamped to lo..=hi [prm_int]
Sourcepub fn dbl(&self, slot: usize, lo: f64, hi: f64) -> f64
pub fn dbl(&self, slot: usize, lo: f64, hi: f64) -> f64
the f64 slot clamped to lo..=hi, NaN -> lo [prm_f64]
Sourcepub fn byte(&self, slot: usize, i: usize) -> u8
pub fn byte(&self, slot: usize, i: usize) -> u8
byte i of the block counted from slot slot (FP_BLOB)
pub fn set_i(&mut self, slot: usize, v: i64)
pub fn set_f(&mut self, slot: usize, v: f64)
pub fn set_byte(&mut self, slot: usize, i: usize, v: u8)
Trait Implementations§
Auto Trait Implementations§
impl Forget for Params
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
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