pub struct NumericParamBuf<'a> { /* private fields */ }Expand description
A view into a ParamBuf that contains only numeric parameters.
Each parameter may contain zero or more numeric values, separated by colons.
Empty parameters are interpreted as None.
Implementations§
Source§impl<'a> NumericParamBuf<'a>
impl<'a> NumericParamBuf<'a>
pub const fn empty() -> Self
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.
pub fn get(&self, index: usize) -> Option<NumericParam<'a>>
Trait Implementations§
Source§impl<'a> Clone for NumericParamBuf<'a>
impl<'a> Clone for NumericParamBuf<'a>
Source§fn clone(&self) -> NumericParamBuf<'a>
fn clone(&self) -> NumericParamBuf<'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 NumericParamBuf<'a>
impl<'a> Debug for NumericParamBuf<'a>
Source§impl<'a> IntoIterator for NumericParamBuf<'a>
impl<'a> IntoIterator for NumericParamBuf<'a>
impl<'a> Copy for NumericParamBuf<'a>
Auto Trait Implementations§
impl<'a> Freeze for NumericParamBuf<'a>
impl<'a> RefUnwindSafe for NumericParamBuf<'a>
impl<'a> Send for NumericParamBuf<'a>
impl<'a> Sync for NumericParamBuf<'a>
impl<'a> Unpin for NumericParamBuf<'a>
impl<'a> UnwindSafe for NumericParamBuf<'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