Struct sval::BinaryArray
source · #[repr(transparent)]pub struct BinaryArray<const N: usize>(_);
Expand description
An adapter that streams a slice of 8bit unsigned integers as binary with a fixed size.
This type is like BinarySlice
, but for fixed-size arrays.
Implementations§
Trait Implementations§
source§impl<const N: usize> Value for BinaryArray<N>
impl<const N: usize> Value for BinaryArray<N>
source§fn stream<'sval, S: Stream<'sval> + ?Sized>(
&'sval self,
stream: &mut S
) -> Result
fn stream<'sval, S: Stream<'sval> + ?Sized>( &'sval self, stream: &mut S ) -> Result
Stream this value through a
Stream
.source§fn to_f32(&self) -> Option<f32>
fn to_f32(&self) -> Option<f32>
Try convert this value into a 32bit binary floating point number.
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for BinaryArray<N>
impl<const N: usize> Send for BinaryArray<N>
impl<const N: usize> Sync for BinaryArray<N>
impl<const N: usize> Unpin for BinaryArray<N>
impl<const N: usize> UnwindSafe for BinaryArray<N>
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