pub enum HostDataVec {
F32(Vec<f32>),
I32(Vec<i32>),
Bool(Vec<bool>),
}Variants§
Implementations§
Source§impl HostDataVec
impl HostDataVec
pub fn get_f32(&self, i: usize) -> f32
pub fn get_bool(&self, i: usize) -> bool
pub fn get_i32(&self, i: usize) -> i32
pub fn try_get_f32(&self, i: usize) -> Option<f32>
pub fn try_get_i32(&self, i: usize) -> Option<i32>
pub fn try_get_bool(&self, i: usize) -> Option<bool>
Trait Implementations§
Source§impl Clone for HostDataVec
impl Clone for HostDataVec
Source§fn clone(&self) -> HostDataVec
fn clone(&self) -> HostDataVec
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 moreAuto Trait Implementations§
impl Freeze for HostDataVec
impl RefUnwindSafe for HostDataVec
impl Send for HostDataVec
impl Sync for HostDataVec
impl Unpin for HostDataVec
impl UnsafeUnpin for HostDataVec
impl UnwindSafe for HostDataVec
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