pub enum HostNumericDataOwned {
F64(Vec<f64>),
F32(Vec<f32>),
I8(Vec<i8>),
I16(Vec<i16>),
I32(Vec<i32>),
I64(Vec<i64>),
U8(Vec<u8>),
U16(Vec<u16>),
U32(Vec<u32>),
U64(Vec<u64>),
}Expand description
Owned native numeric buffer returned by a provider download.
Variants§
F64(Vec<f64>)
F32(Vec<f32>)
I8(Vec<i8>)
I16(Vec<i16>)
I32(Vec<i32>)
I64(Vec<i64>)
U8(Vec<u8>)
U16(Vec<u16>)
U32(Vec<u32>)
U64(Vec<u64>)
Implementations§
Source§impl HostNumericDataOwned
impl HostNumericDataOwned
pub const fn element_type(&self) -> NumericElementType
pub fn as_view(&self) -> HostNumericDataView<'_>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for HostNumericDataOwned
impl Clone for HostNumericDataOwned
Source§fn clone(&self) -> HostNumericDataOwned
fn clone(&self) -> HostNumericDataOwned
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 moreSource§impl Debug for HostNumericDataOwned
impl Debug for HostNumericDataOwned
Source§impl From<HostIntegerDataOwned> for HostNumericDataOwned
impl From<HostIntegerDataOwned> for HostNumericDataOwned
Source§fn from(value: HostIntegerDataOwned) -> Self
fn from(value: HostIntegerDataOwned) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HostNumericDataOwned
impl PartialEq for HostNumericDataOwned
impl StructuralPartialEq for HostNumericDataOwned
Auto Trait Implementations§
impl Freeze for HostNumericDataOwned
impl RefUnwindSafe for HostNumericDataOwned
impl Send for HostNumericDataOwned
impl Sync for HostNumericDataOwned
impl Unpin for HostNumericDataOwned
impl UnsafeUnpin for HostNumericDataOwned
impl UnwindSafe for HostNumericDataOwned
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