#[repr(C)]pub struct VectorOfInt { /* private fields */ }Expand description
C++ class: std::vector<int, std::allocator<int>>.
Implementations§
Source§impl VectorOfInt
 
impl VectorOfInt
Sourcepub unsafe fn assign_usize_int(
    &mut self,
    n: usize,
    val: impl CastInto<Ref<c_int>>,
)
 
pub unsafe fn assign_usize_int( &mut self, n: usize, val: impl CastInto<Ref<c_int>>, )
Calls C++ function: void std::vector<int, std::allocator<int>>::assign(size_t __n, const int& __val).
Sourcepub unsafe fn assign_2_int(
    &mut self,
    first: impl CastInto<Ptr<c_int>>,
    last: impl CastInto<Ptr<c_int>>,
)
 
pub unsafe fn assign_2_int( &mut self, first: impl CastInto<Ptr<c_int>>, last: impl CastInto<Ptr<c_int>>, )
Calls C++ function: void std::vector<int, std::allocator<int>>::assign(const int* first, const int* last).
Sourcepub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_int>
 
pub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_int>
Calls C++ function: int& std::vector<int, std::allocator<int>>::at(size_t __n).
Sourcepub unsafe fn at(&self, n: usize) -> Ref<c_int>
 
pub unsafe fn at(&self, n: usize) -> Ref<c_int>
Calls C++ function: const int& std::vector<int, std::allocator<int>>::at(size_t __n) const.
Sourcepub unsafe fn back_mut(&mut self) -> MutRef<c_int>
 
pub unsafe fn back_mut(&mut self) -> MutRef<c_int>
Calls C++ function: int& std::vector<int, std::allocator<int>>::back().
Sourcepub unsafe fn back(&self) -> Ref<c_int>
 
pub unsafe fn back(&self) -> Ref<c_int>
Calls C++ function: const int& std::vector<int, std::allocator<int>>::back() const.
Sourcepub unsafe fn capacity(&self) -> usize
 
pub unsafe fn capacity(&self) -> usize
Calls C++ function: size_t std::vector<int, std::allocator<int>>::capacity() const.
Sourcepub unsafe fn clear(&mut self)
 
pub unsafe fn clear(&mut self)
Calls C++ function: void std::vector<int, std::allocator<int>>::clear().
Sourcepub unsafe fn copy_from(
    &mut self,
    other: impl CastInto<Ref<VectorOfInt>>,
) -> MutRef<VectorOfInt>
 
pub unsafe fn copy_from( &mut self, other: impl CastInto<Ref<VectorOfInt>>, ) -> MutRef<VectorOfInt>
Calls C++ function: std::vector<int, std::allocator<int>>& std::vector<int, std::allocator<int>>::operator=(const std::vector<int, std::allocator<int>>& other).
Sourcepub unsafe fn data_mut(&mut self) -> MutPtr<c_int>
 
pub unsafe fn data_mut(&mut self) -> MutPtr<c_int>
Calls C++ function: int* std::vector<int, std::allocator<int>>::data().
Sourcepub unsafe fn data(&self) -> Ptr<c_int>
 
pub unsafe fn data(&self) -> Ptr<c_int>
Calls C++ function: const int* std::vector<int, std::allocator<int>>::data() const.
Sourcepub unsafe fn empty(&self) -> bool
 
pub unsafe fn empty(&self) -> bool
Calls C++ function: bool std::vector<int, std::allocator<int>>::empty() const.
Sourcepub unsafe fn front_mut(&mut self) -> MutRef<c_int>
 
pub unsafe fn front_mut(&mut self) -> MutRef<c_int>
Calls C++ function: int& std::vector<int, std::allocator<int>>::front().
Sourcepub unsafe fn front(&self) -> Ref<c_int>
 
pub unsafe fn front(&self) -> Ref<c_int>
Calls C++ function: const int& std::vector<int, std::allocator<int>>::front() const.
Sourcepub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_int>
 
pub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_int>
Calls C++ function: int& std::vector<int, std::allocator<int>>::operator[](size_t __n).
Sourcepub unsafe fn index(&self, n: usize) -> Ref<c_int>
 
pub unsafe fn index(&self, n: usize) -> Ref<c_int>
Calls C++ function: const int& std::vector<int, std::allocator<int>>::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<int, std::allocator<int>>::max_size() const.
Sourcepub unsafe fn new() -> CppBox<VectorOfInt>
 
pub unsafe fn new() -> CppBox<VectorOfInt>
Calls C++ function: [constructor] void std::vector<int, std::allocator<int>>::vector().
Sourcepub unsafe fn from_allocator_of_int(
    a: impl CastInto<Ref<AllocatorOfInt>>,
) -> CppBox<VectorOfInt>
 
pub unsafe fn from_allocator_of_int( a: impl CastInto<Ref<AllocatorOfInt>>, ) -> CppBox<VectorOfInt>
Calls C++ function: [constructor] void std::vector<int, std::allocator<int>>::vector(const std::allocator<int>& __a).
Sourcepub unsafe fn from_usize_allocator_of_int(
    n: usize,
    a: impl CastInto<Ref<AllocatorOfInt>>,
) -> CppBox<VectorOfInt>
 
pub unsafe fn from_usize_allocator_of_int( n: usize, a: impl CastInto<Ref<AllocatorOfInt>>, ) -> CppBox<VectorOfInt>
Calls C++ function: [constructor] void std::vector<int, std::allocator<int>>::vector(size_t __n, const std::allocator<int>& __a = …).
Sourcepub unsafe fn from_usize_int_allocator_of_int(
    n: usize,
    value: impl CastInto<Ref<c_int>>,
    a: impl CastInto<Ref<AllocatorOfInt>>,
) -> CppBox<VectorOfInt>
 
pub unsafe fn from_usize_int_allocator_of_int( n: usize, value: impl CastInto<Ref<c_int>>, a: impl CastInto<Ref<AllocatorOfInt>>, ) -> CppBox<VectorOfInt>
Calls C++ function: [constructor] void std::vector<int, std::allocator<int>>::vector(size_t __n, const int& __value, const std::allocator<int>& __a = …).
Sourcepub unsafe fn from_vector_of_int_allocator_of_int(
    x: impl CastInto<Ref<VectorOfInt>>,
    a: impl CastInto<Ref<AllocatorOfInt>>,
) -> CppBox<VectorOfInt>
 
pub unsafe fn from_vector_of_int_allocator_of_int( x: impl CastInto<Ref<VectorOfInt>>, a: impl CastInto<Ref<AllocatorOfInt>>, ) -> CppBox<VectorOfInt>
Calls C++ function: [constructor] void std::vector<int, std::allocator<int>>::vector(const std::vector<int, std::allocator<int>>& __x, const std::allocator<int>& __a).
Sourcepub unsafe fn from_2_int_allocator_of_int(
    first: impl CastInto<Ptr<c_int>>,
    last: impl CastInto<Ptr<c_int>>,
    alloc: impl CastInto<Ref<AllocatorOfInt>>,
) -> CppBox<VectorOfInt>
 
pub unsafe fn from_2_int_allocator_of_int( first: impl CastInto<Ptr<c_int>>, last: impl CastInto<Ptr<c_int>>, alloc: impl CastInto<Ref<AllocatorOfInt>>, ) -> CppBox<VectorOfInt>
Calls C++ function: [constructor] void std::vector<int, std::allocator<int>>::vector(const int* first, const int* last, std::allocator<int> alloc = …).
Sourcepub unsafe fn from_usize(n: usize) -> CppBox<VectorOfInt>
 
pub unsafe fn from_usize(n: usize) -> CppBox<VectorOfInt>
Calls C++ function: [constructor] void std::vector<int, std::allocator<int>>::vector(size_t __n).
Sourcepub unsafe fn from_usize_int(
    n: usize,
    value: impl CastInto<Ref<c_int>>,
) -> CppBox<VectorOfInt>
 
pub unsafe fn from_usize_int( n: usize, value: impl CastInto<Ref<c_int>>, ) -> CppBox<VectorOfInt>
Calls C++ function: [constructor] void std::vector<int, std::allocator<int>>::vector(size_t __n, const int& __value).
Sourcepub unsafe fn from_2_int(
    first: impl CastInto<Ptr<c_int>>,
    last: impl CastInto<Ptr<c_int>>,
) -> CppBox<VectorOfInt>
 
pub unsafe fn from_2_int( first: impl CastInto<Ptr<c_int>>, last: impl CastInto<Ptr<c_int>>, ) -> CppBox<VectorOfInt>
Calls C++ function: [constructor] void std::vector<int, std::allocator<int>>::vector(const int* first, const int* last).
Sourcepub unsafe fn new_copy(
    other: impl CastInto<Ref<VectorOfInt>>,
) -> CppBox<VectorOfInt>
 
pub unsafe fn new_copy( other: impl CastInto<Ref<VectorOfInt>>, ) -> CppBox<VectorOfInt>
Calls C++ function: [constructor] void std::vector<int, std::allocator<int>>::vector(const std::vector<int, std::allocator<int>>& other).
Sourcepub unsafe fn pop_back(&mut self)
 
pub unsafe fn pop_back(&mut self)
Calls C++ function: void std::vector<int, std::allocator<int>>::pop_back().
Sourcepub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_int>>)
 
pub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_int>>)
Calls C++ function: void std::vector<int, std::allocator<int>>::push_back(const int& __x).
Sourcepub unsafe fn reserve(&mut self, n: usize)
 
pub unsafe fn reserve(&mut self, n: usize)
Calls C++ function: void std::vector<int, std::allocator<int>>::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<int, std::allocator<int>>::resize(size_t __new_size).
Sourcepub unsafe fn resize_2a(
    &mut self,
    new_size: usize,
    x: impl CastInto<Ref<c_int>>,
)
 
pub unsafe fn resize_2a( &mut self, new_size: usize, x: impl CastInto<Ref<c_int>>, )
Calls C++ function: void std::vector<int, std::allocator<int>>::resize(size_t __new_size, const int& __x).
Sourcepub unsafe fn shrink_to_fit(&mut self)
 
pub unsafe fn shrink_to_fit(&mut self)
Calls C++ function: void std::vector<int, std::allocator<int>>::shrink_to_fit().
Sourcepub unsafe fn size(&self) -> usize
 
pub unsafe fn size(&self) -> usize
Calls C++ function: size_t std::vector<int, std::allocator<int>>::size() const.
Sourcepub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfInt>>)
 
pub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfInt>>)
Calls C++ function: void std::vector<int, std::allocator<int>>::swap(std::vector<int, std::allocator<int>>& __x).