#[repr(C)]pub struct VectorOfShort { /* private fields */ }Expand description
C++ class: std::vector<short, std::allocator<short>>.
Implementations§
Source§impl VectorOfShort
impl VectorOfShort
Sourcepub unsafe fn assign_usize_short(
&mut self,
n: usize,
val: impl CastInto<Ref<c_short>>,
)
pub unsafe fn assign_usize_short( &mut self, n: usize, val: impl CastInto<Ref<c_short>>, )
Calls C++ function: void std::vector<short, std::allocator<short>>::assign(size_t __n, const short& __val).
Sourcepub unsafe fn assign_2_short(
&mut self,
first: impl CastInto<Ptr<c_short>>,
last: impl CastInto<Ptr<c_short>>,
)
pub unsafe fn assign_2_short( &mut self, first: impl CastInto<Ptr<c_short>>, last: impl CastInto<Ptr<c_short>>, )
Calls C++ function: void std::vector<short, std::allocator<short>>::assign(const short* first, const short* last).
Sourcepub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_short>
pub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_short>
Calls C++ function: short& std::vector<short, std::allocator<short>>::at(size_t __n).
Sourcepub unsafe fn at(&self, n: usize) -> Ref<c_short>
pub unsafe fn at(&self, n: usize) -> Ref<c_short>
Calls C++ function: const short& std::vector<short, std::allocator<short>>::at(size_t __n) const.
Sourcepub unsafe fn back_mut(&mut self) -> MutRef<c_short>
pub unsafe fn back_mut(&mut self) -> MutRef<c_short>
Calls C++ function: short& std::vector<short, std::allocator<short>>::back().
Sourcepub unsafe fn back(&self) -> Ref<c_short>
pub unsafe fn back(&self) -> Ref<c_short>
Calls C++ function: const short& std::vector<short, std::allocator<short>>::back() const.
Sourcepub unsafe fn capacity(&self) -> usize
pub unsafe fn capacity(&self) -> usize
Calls C++ function: size_t std::vector<short, std::allocator<short>>::capacity() const.
Sourcepub unsafe fn clear(&mut self)
pub unsafe fn clear(&mut self)
Calls C++ function: void std::vector<short, std::allocator<short>>::clear().
Sourcepub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<VectorOfShort>>,
) -> MutRef<VectorOfShort>
pub unsafe fn copy_from( &mut self, other: impl CastInto<Ref<VectorOfShort>>, ) -> MutRef<VectorOfShort>
Calls C++ function: std::vector<short, std::allocator<short>>& std::vector<short, std::allocator<short>>::operator=(const std::vector<short, std::allocator<short>>& other).
Sourcepub unsafe fn data_mut(&mut self) -> MutPtr<c_short>
pub unsafe fn data_mut(&mut self) -> MutPtr<c_short>
Calls C++ function: short* std::vector<short, std::allocator<short>>::data().
Sourcepub unsafe fn data(&self) -> Ptr<c_short>
pub unsafe fn data(&self) -> Ptr<c_short>
Calls C++ function: const short* std::vector<short, std::allocator<short>>::data() const.
Sourcepub unsafe fn empty(&self) -> bool
pub unsafe fn empty(&self) -> bool
Calls C++ function: bool std::vector<short, std::allocator<short>>::empty() const.
Sourcepub unsafe fn front_mut(&mut self) -> MutRef<c_short>
pub unsafe fn front_mut(&mut self) -> MutRef<c_short>
Calls C++ function: short& std::vector<short, std::allocator<short>>::front().
Sourcepub unsafe fn front(&self) -> Ref<c_short>
pub unsafe fn front(&self) -> Ref<c_short>
Calls C++ function: const short& std::vector<short, std::allocator<short>>::front() const.
Sourcepub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_short>
pub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_short>
Calls C++ function: short& std::vector<short, std::allocator<short>>::operator[](size_t __n).
Sourcepub unsafe fn index(&self, n: usize) -> Ref<c_short>
pub unsafe fn index(&self, n: usize) -> Ref<c_short>
Calls C++ function: const short& std::vector<short, std::allocator<short>>::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<short, std::allocator<short>>::max_size() const.
Sourcepub unsafe fn new() -> CppBox<VectorOfShort>
pub unsafe fn new() -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector().
Sourcepub unsafe fn from_allocator_of_short(
a: impl CastInto<Ref<AllocatorOfShort>>,
) -> CppBox<VectorOfShort>
pub unsafe fn from_allocator_of_short( a: impl CastInto<Ref<AllocatorOfShort>>, ) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(const std::allocator<short>& __a).
Sourcepub unsafe fn from_usize_allocator_of_short(
n: usize,
a: impl CastInto<Ref<AllocatorOfShort>>,
) -> CppBox<VectorOfShort>
pub unsafe fn from_usize_allocator_of_short( n: usize, a: impl CastInto<Ref<AllocatorOfShort>>, ) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(size_t __n, const std::allocator<short>& __a = …).
Sourcepub unsafe fn from_usize_short_allocator_of_short(
n: usize,
value: impl CastInto<Ref<c_short>>,
a: impl CastInto<Ref<AllocatorOfShort>>,
) -> CppBox<VectorOfShort>
pub unsafe fn from_usize_short_allocator_of_short( n: usize, value: impl CastInto<Ref<c_short>>, a: impl CastInto<Ref<AllocatorOfShort>>, ) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(size_t __n, const short& __value, const std::allocator<short>& __a = …).
Sourcepub unsafe fn from_vector_of_short_allocator_of_short(
x: impl CastInto<Ref<VectorOfShort>>,
a: impl CastInto<Ref<AllocatorOfShort>>,
) -> CppBox<VectorOfShort>
pub unsafe fn from_vector_of_short_allocator_of_short( x: impl CastInto<Ref<VectorOfShort>>, a: impl CastInto<Ref<AllocatorOfShort>>, ) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(const std::vector<short, std::allocator<short>>& __x, const std::allocator<short>& __a).
Sourcepub unsafe fn from_2_short_allocator_of_short(
first: impl CastInto<Ptr<c_short>>,
last: impl CastInto<Ptr<c_short>>,
alloc: impl CastInto<Ref<AllocatorOfShort>>,
) -> CppBox<VectorOfShort>
pub unsafe fn from_2_short_allocator_of_short( first: impl CastInto<Ptr<c_short>>, last: impl CastInto<Ptr<c_short>>, alloc: impl CastInto<Ref<AllocatorOfShort>>, ) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(const short* first, const short* last, std::allocator<short> alloc = …).
Sourcepub unsafe fn from_usize(n: usize) -> CppBox<VectorOfShort>
pub unsafe fn from_usize(n: usize) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(size_t __n).
Sourcepub unsafe fn from_usize_short(
n: usize,
value: impl CastInto<Ref<c_short>>,
) -> CppBox<VectorOfShort>
pub unsafe fn from_usize_short( n: usize, value: impl CastInto<Ref<c_short>>, ) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(size_t __n, const short& __value).
Sourcepub unsafe fn from_2_short(
first: impl CastInto<Ptr<c_short>>,
last: impl CastInto<Ptr<c_short>>,
) -> CppBox<VectorOfShort>
pub unsafe fn from_2_short( first: impl CastInto<Ptr<c_short>>, last: impl CastInto<Ptr<c_short>>, ) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(const short* first, const short* last).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<VectorOfShort>>,
) -> CppBox<VectorOfShort>
pub unsafe fn new_copy( other: impl CastInto<Ref<VectorOfShort>>, ) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(const std::vector<short, std::allocator<short>>& other).
Sourcepub unsafe fn pop_back(&mut self)
pub unsafe fn pop_back(&mut self)
Calls C++ function: void std::vector<short, std::allocator<short>>::pop_back().
Sourcepub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_short>>)
pub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_short>>)
Calls C++ function: void std::vector<short, std::allocator<short>>::push_back(const short& __x).
Sourcepub unsafe fn reserve(&mut self, n: usize)
pub unsafe fn reserve(&mut self, n: usize)
Calls C++ function: void std::vector<short, std::allocator<short>>::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<short, std::allocator<short>>::resize(size_t __new_size).
Sourcepub unsafe fn resize_2a(
&mut self,
new_size: usize,
x: impl CastInto<Ref<c_short>>,
)
pub unsafe fn resize_2a( &mut self, new_size: usize, x: impl CastInto<Ref<c_short>>, )
Calls C++ function: void std::vector<short, std::allocator<short>>::resize(size_t __new_size, const short& __x).
Sourcepub unsafe fn shrink_to_fit(&mut self)
pub unsafe fn shrink_to_fit(&mut self)
Calls C++ function: void std::vector<short, std::allocator<short>>::shrink_to_fit().
Sourcepub unsafe fn size(&self) -> usize
pub unsafe fn size(&self) -> usize
Calls C++ function: size_t std::vector<short, std::allocator<short>>::size() const.
Sourcepub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfShort>>)
pub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfShort>>)
Calls C++ function: void std::vector<short, std::allocator<short>>::swap(std::vector<short, std::allocator<short>>& __x).