pub struct NumericParam<'a> { /* private fields */ }Expand description
A view into a [Param] that contains only numeric parameters.
Implementations§
Source§impl<'a> NumericParam<'a>
impl<'a> NumericParam<'a>
Sourcepub fn try_write<'b>(&self, buf: &'b mut [u16]) -> Result<&'b [u16], usize>
pub fn try_write<'b>(&self, buf: &'b mut [u16]) -> Result<&'b [u16], usize>
Try to write the parameters to the given buffer, returning the written slice if successful. If any parameters are not a single-numeric value, writes a zero in that position.
If the slice is not long enough, returns an error with the required length.
Trait Implementations§
Source§impl<'a> Clone for NumericParam<'a>
impl<'a> Clone for NumericParam<'a>
Source§fn clone(&self) -> NumericParam<'a>
fn clone(&self) -> NumericParam<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for NumericParam<'a>
impl<'a> Debug for NumericParam<'a>
Source§impl<'a> Default for NumericParam<'a>
impl<'a> Default for NumericParam<'a>
Source§fn default() -> NumericParam<'a>
fn default() -> NumericParam<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> IntoIterator for NumericParam<'a>
impl<'a> IntoIterator for NumericParam<'a>
impl<'a> Copy for NumericParam<'a>
Auto Trait Implementations§
impl<'a> Freeze for NumericParam<'a>
impl<'a> RefUnwindSafe for NumericParam<'a>
impl<'a> Send for NumericParam<'a>
impl<'a> Sync for NumericParam<'a>
impl<'a> Unpin for NumericParam<'a>
impl<'a> UnwindSafe for NumericParam<'a>
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