pub enum HostNumericDataView<'a> {
F64(&'a [f64]),
F32(&'a [f32]),
I8(&'a [i8]),
I16(&'a [i16]),
I32(&'a [i32]),
I64(&'a [i64]),
U8(&'a [u8]),
U16(&'a [u16]),
U32(&'a [u32]),
U64(&'a [u64]),
}Expand description
Borrowed native numeric buffer used for provider transfers.
Variants§
F64(&'a [f64])
F32(&'a [f32])
I8(&'a [i8])
I16(&'a [i16])
I32(&'a [i32])
I64(&'a [i64])
U8(&'a [u8])
U16(&'a [u16])
U32(&'a [u32])
U64(&'a [u64])
Implementations§
Source§impl HostNumericDataView<'_>
impl HostNumericDataView<'_>
pub const fn element_type(self) -> NumericElementType
pub const fn len(self) -> usize
pub const fn is_empty(self) -> bool
Trait Implementations§
Source§impl<'a> Clone for HostNumericDataView<'a>
impl<'a> Clone for HostNumericDataView<'a>
Source§fn clone(&self) -> HostNumericDataView<'a>
fn clone(&self) -> HostNumericDataView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for HostNumericDataView<'a>
Source§impl<'a> Debug for HostNumericDataView<'a>
impl<'a> Debug for HostNumericDataView<'a>
Source§impl<'a> From<HostIntegerDataView<'a>> for HostNumericDataView<'a>
impl<'a> From<HostIntegerDataView<'a>> for HostNumericDataView<'a>
Source§fn from(value: HostIntegerDataView<'a>) -> Self
fn from(value: HostIntegerDataView<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for HostNumericDataView<'a>
impl<'a> RefUnwindSafe for HostNumericDataView<'a>
impl<'a> Send for HostNumericDataView<'a>
impl<'a> Sync for HostNumericDataView<'a>
impl<'a> Unpin for HostNumericDataView<'a>
impl<'a> UnsafeUnpin for HostNumericDataView<'a>
impl<'a> UnwindSafe for HostNumericDataView<'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