#[repr(C)]pub struct VectorOfFloat { /* private fields */ }Expand description
C++ class: std::vector<float, std::allocator<float>>.
Implementations§
Source§impl VectorOfFloat
impl VectorOfFloat
Sourcepub unsafe fn assign_usize_float(
&mut self,
n: usize,
val: impl CastInto<Ref<c_float>>,
)
pub unsafe fn assign_usize_float( &mut self, n: usize, val: impl CastInto<Ref<c_float>>, )
Calls C++ function: void std::vector<float, std::allocator<float>>::assign(size_t __n, const float& __val).
Sourcepub unsafe fn assign_2_float(
&mut self,
first: impl CastInto<Ptr<c_float>>,
last: impl CastInto<Ptr<c_float>>,
)
pub unsafe fn assign_2_float( &mut self, first: impl CastInto<Ptr<c_float>>, last: impl CastInto<Ptr<c_float>>, )
Calls C++ function: void std::vector<float, std::allocator<float>>::assign(const float* first, const float* last).
Sourcepub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_float>
pub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_float>
Calls C++ function: float& std::vector<float, std::allocator<float>>::at(size_t __n).
Sourcepub unsafe fn at(&self, n: usize) -> Ref<c_float>
pub unsafe fn at(&self, n: usize) -> Ref<c_float>
Calls C++ function: const float& std::vector<float, std::allocator<float>>::at(size_t __n) const.
Sourcepub unsafe fn back_mut(&mut self) -> MutRef<c_float>
pub unsafe fn back_mut(&mut self) -> MutRef<c_float>
Calls C++ function: float& std::vector<float, std::allocator<float>>::back().
Sourcepub unsafe fn back(&self) -> Ref<c_float>
pub unsafe fn back(&self) -> Ref<c_float>
Calls C++ function: const float& std::vector<float, std::allocator<float>>::back() const.
Sourcepub unsafe fn capacity(&self) -> usize
pub unsafe fn capacity(&self) -> usize
Calls C++ function: size_t std::vector<float, std::allocator<float>>::capacity() const.
Sourcepub unsafe fn clear(&mut self)
pub unsafe fn clear(&mut self)
Calls C++ function: void std::vector<float, std::allocator<float>>::clear().
Sourcepub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<VectorOfFloat>>,
) -> MutRef<VectorOfFloat>
pub unsafe fn copy_from( &mut self, other: impl CastInto<Ref<VectorOfFloat>>, ) -> MutRef<VectorOfFloat>
Calls C++ function: std::vector<float, std::allocator<float>>& std::vector<float, std::allocator<float>>::operator=(const std::vector<float, std::allocator<float>>& other).
Sourcepub unsafe fn data_mut(&mut self) -> MutPtr<c_float>
pub unsafe fn data_mut(&mut self) -> MutPtr<c_float>
Calls C++ function: float* std::vector<float, std::allocator<float>>::data().
Sourcepub unsafe fn data(&self) -> Ptr<c_float>
pub unsafe fn data(&self) -> Ptr<c_float>
Calls C++ function: const float* std::vector<float, std::allocator<float>>::data() const.
Sourcepub unsafe fn empty(&self) -> bool
pub unsafe fn empty(&self) -> bool
Calls C++ function: bool std::vector<float, std::allocator<float>>::empty() const.
Sourcepub unsafe fn front_mut(&mut self) -> MutRef<c_float>
pub unsafe fn front_mut(&mut self) -> MutRef<c_float>
Calls C++ function: float& std::vector<float, std::allocator<float>>::front().
Sourcepub unsafe fn front(&self) -> Ref<c_float>
pub unsafe fn front(&self) -> Ref<c_float>
Calls C++ function: const float& std::vector<float, std::allocator<float>>::front() const.
Sourcepub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_float>
pub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_float>
Calls C++ function: float& std::vector<float, std::allocator<float>>::operator[](size_t __n).
Sourcepub unsafe fn index(&self, n: usize) -> Ref<c_float>
pub unsafe fn index(&self, n: usize) -> Ref<c_float>
Calls C++ function: const float& std::vector<float, std::allocator<float>>::operator[](size_t __n) const.
Sourcepub unsafe fn max_size(&self) -> usize
pub unsafe fn max_size(&self) -> usize
Calls C++ function: size_t std::vector<float, std::allocator<float>>::max_size() const.
Sourcepub unsafe fn new() -> CppBox<VectorOfFloat>
pub unsafe fn new() -> CppBox<VectorOfFloat>
Calls C++ function: [constructor] void std::vector<float, std::allocator<float>>::vector().
Sourcepub unsafe fn from_allocator_of_float(
a: impl CastInto<Ref<AllocatorOfFloat>>,
) -> CppBox<VectorOfFloat>
pub unsafe fn from_allocator_of_float( a: impl CastInto<Ref<AllocatorOfFloat>>, ) -> CppBox<VectorOfFloat>
Calls C++ function: [constructor] void std::vector<float, std::allocator<float>>::vector(const std::allocator<float>& __a).
Sourcepub unsafe fn from_usize_allocator_of_float(
n: usize,
a: impl CastInto<Ref<AllocatorOfFloat>>,
) -> CppBox<VectorOfFloat>
pub unsafe fn from_usize_allocator_of_float( n: usize, a: impl CastInto<Ref<AllocatorOfFloat>>, ) -> CppBox<VectorOfFloat>
Calls C++ function: [constructor] void std::vector<float, std::allocator<float>>::vector(size_t __n, const std::allocator<float>& __a = …).
Sourcepub unsafe fn from_usize_float_allocator_of_float(
n: usize,
value: impl CastInto<Ref<c_float>>,
a: impl CastInto<Ref<AllocatorOfFloat>>,
) -> CppBox<VectorOfFloat>
pub unsafe fn from_usize_float_allocator_of_float( n: usize, value: impl CastInto<Ref<c_float>>, a: impl CastInto<Ref<AllocatorOfFloat>>, ) -> CppBox<VectorOfFloat>
Calls C++ function: [constructor] void std::vector<float, std::allocator<float>>::vector(size_t __n, const float& __value, const std::allocator<float>& __a = …).
Sourcepub unsafe fn from_vector_of_float_allocator_of_float(
x: impl CastInto<Ref<VectorOfFloat>>,
a: impl CastInto<Ref<AllocatorOfFloat>>,
) -> CppBox<VectorOfFloat>
pub unsafe fn from_vector_of_float_allocator_of_float( x: impl CastInto<Ref<VectorOfFloat>>, a: impl CastInto<Ref<AllocatorOfFloat>>, ) -> CppBox<VectorOfFloat>
Calls C++ function: [constructor] void std::vector<float, std::allocator<float>>::vector(const std::vector<float, std::allocator<float>>& __x, const std::allocator<float>& __a).
Sourcepub unsafe fn from_2_float_allocator_of_float(
first: impl CastInto<Ptr<c_float>>,
last: impl CastInto<Ptr<c_float>>,
alloc: impl CastInto<Ref<AllocatorOfFloat>>,
) -> CppBox<VectorOfFloat>
pub unsafe fn from_2_float_allocator_of_float( first: impl CastInto<Ptr<c_float>>, last: impl CastInto<Ptr<c_float>>, alloc: impl CastInto<Ref<AllocatorOfFloat>>, ) -> CppBox<VectorOfFloat>
Calls C++ function: [constructor] void std::vector<float, std::allocator<float>>::vector(const float* first, const float* last, std::allocator<float> alloc = …).
Sourcepub unsafe fn from_usize(n: usize) -> CppBox<VectorOfFloat>
pub unsafe fn from_usize(n: usize) -> CppBox<VectorOfFloat>
Calls C++ function: [constructor] void std::vector<float, std::allocator<float>>::vector(size_t __n).
Sourcepub unsafe fn from_usize_float(
n: usize,
value: impl CastInto<Ref<c_float>>,
) -> CppBox<VectorOfFloat>
pub unsafe fn from_usize_float( n: usize, value: impl CastInto<Ref<c_float>>, ) -> CppBox<VectorOfFloat>
Calls C++ function: [constructor] void std::vector<float, std::allocator<float>>::vector(size_t __n, const float& __value).
Sourcepub unsafe fn from_2_float(
first: impl CastInto<Ptr<c_float>>,
last: impl CastInto<Ptr<c_float>>,
) -> CppBox<VectorOfFloat>
pub unsafe fn from_2_float( first: impl CastInto<Ptr<c_float>>, last: impl CastInto<Ptr<c_float>>, ) -> CppBox<VectorOfFloat>
Calls C++ function: [constructor] void std::vector<float, std::allocator<float>>::vector(const float* first, const float* last).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<VectorOfFloat>>,
) -> CppBox<VectorOfFloat>
pub unsafe fn new_copy( other: impl CastInto<Ref<VectorOfFloat>>, ) -> CppBox<VectorOfFloat>
Calls C++ function: [constructor] void std::vector<float, std::allocator<float>>::vector(const std::vector<float, std::allocator<float>>& other).
Sourcepub unsafe fn pop_back(&mut self)
pub unsafe fn pop_back(&mut self)
Calls C++ function: void std::vector<float, std::allocator<float>>::pop_back().
Sourcepub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_float>>)
pub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_float>>)
Calls C++ function: void std::vector<float, std::allocator<float>>::push_back(const float& __x).
Sourcepub unsafe fn reserve(&mut self, n: usize)
pub unsafe fn reserve(&mut self, n: usize)
Calls C++ function: void std::vector<float, std::allocator<float>>::reserve(size_t __n).
Sourcepub unsafe fn resize_1a(&mut self, new_size: usize)
pub unsafe fn resize_1a(&mut self, new_size: usize)
Calls C++ function: void std::vector<float, std::allocator<float>>::resize(size_t __new_size).
Sourcepub unsafe fn resize_2a(
&mut self,
new_size: usize,
x: impl CastInto<Ref<c_float>>,
)
pub unsafe fn resize_2a( &mut self, new_size: usize, x: impl CastInto<Ref<c_float>>, )
Calls C++ function: void std::vector<float, std::allocator<float>>::resize(size_t __new_size, const float& __x).
Sourcepub unsafe fn shrink_to_fit(&mut self)
pub unsafe fn shrink_to_fit(&mut self)
Calls C++ function: void std::vector<float, std::allocator<float>>::shrink_to_fit().
Sourcepub unsafe fn size(&self) -> usize
pub unsafe fn size(&self) -> usize
Calls C++ function: size_t std::vector<float, std::allocator<float>>::size() const.
Sourcepub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfFloat>>)
pub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfFloat>>)
Calls C++ function: void std::vector<float, std::allocator<float>>::swap(std::vector<float, std::allocator<float>>& __x).