pub struct F32Vec { /* private fields */ }Implementations§
Source§impl F32Vec
impl F32Vec
pub fn new() -> F32Vec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [f32]) -> Self
pub fn from_vec(input: Vec<f32>) -> Self
pub fn iter(&self) -> Iter<'_, f32>
pub fn ptr_as_usize(&self) -> usize
pub const fn len(&self) -> usize
pub const fn capacity(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<&f32>
pub fn as_slice(&self) -> &[f32]
Source§impl F32Vec
impl F32Vec
pub fn from_copy_on_write(input: Cow<'static, [f32]>) -> F32Vec
Sourcepub fn clone_self(&self) -> Self
pub fn clone_self(&self) -> Self
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Sourcepub fn into_library_owned_vec(self) -> Vec<f32>
pub fn into_library_owned_vec(self) -> Vec<f32>
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Trait Implementations§
Source§impl FromIterator<f32> for F32Vec
impl FromIterator<f32> for F32Vec
Source§impl PartialOrd for F32Vec
impl PartialOrd for F32Vec
impl Send for F32Vec
impl Sync for F32Vec
Auto Trait Implementations§
impl Freeze for F32Vec
impl RefUnwindSafe for F32Vec
impl Unpin for F32Vec
impl UnwindSafe for F32Vec
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