#[repr(C)]pub struct VectorOfBool { /* private fields */ }Expand description
C++ class: std::vector<bool, std::allocator<bool>>.
Implementations§
Source§impl VectorOfBool
impl VectorOfBool
Sourcepub unsafe fn assign_usize_bool(
&mut self,
n: usize,
val: impl CastInto<Ref<bool>>,
)
pub unsafe fn assign_usize_bool( &mut self, n: usize, val: impl CastInto<Ref<bool>>, )
Calls C++ function: void std::vector<bool, std::allocator<bool>>::assign(size_t __n, const bool& __val).
Sourcepub unsafe fn assign_2_bool(
&mut self,
first: impl CastInto<Ptr<bool>>,
last: impl CastInto<Ptr<bool>>,
)
pub unsafe fn assign_2_bool( &mut self, first: impl CastInto<Ptr<bool>>, last: impl CastInto<Ptr<bool>>, )
Calls C++ function: void std::vector<bool, std::allocator<bool>>::assign(const bool* first, const bool* last).
Sourcepub unsafe fn capacity(&self) -> usize
pub unsafe fn capacity(&self) -> usize
Calls C++ function: size_t std::vector<bool, std::allocator<bool>>::capacity() const.
Sourcepub unsafe fn clear(&mut self)
pub unsafe fn clear(&mut self)
Calls C++ function: void std::vector<bool, std::allocator<bool>>::clear().
Sourcepub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<VectorOfBool>>,
) -> MutRef<VectorOfBool>
pub unsafe fn copy_from( &mut self, other: impl CastInto<Ref<VectorOfBool>>, ) -> MutRef<VectorOfBool>
Calls C++ function: std::vector<bool, std::allocator<bool>>& std::vector<bool, std::allocator<bool>>::operator=(const std::vector<bool, std::allocator<bool>>& other).
Sourcepub unsafe fn empty(&self) -> bool
pub unsafe fn empty(&self) -> bool
Calls C++ function: bool std::vector<bool, std::allocator<bool>>::empty() const.
Sourcepub unsafe fn max_size(&self) -> usize
pub unsafe fn max_size(&self) -> usize
Calls C++ function: size_t std::vector<bool, std::allocator<bool>>::max_size() const.
Sourcepub unsafe fn new() -> CppBox<VectorOfBool>
pub unsafe fn new() -> CppBox<VectorOfBool>
Calls C++ function: [constructor] void std::vector<bool, std::allocator<bool>>::vector().
Sourcepub unsafe fn from_allocator_of_bool(
a: impl CastInto<Ref<AllocatorOfBool>>,
) -> CppBox<VectorOfBool>
pub unsafe fn from_allocator_of_bool( a: impl CastInto<Ref<AllocatorOfBool>>, ) -> CppBox<VectorOfBool>
Calls C++ function: [constructor] void std::vector<bool, std::allocator<bool>>::vector(const std::allocator<bool>& __a).
Sourcepub unsafe fn from_usize_allocator_of_bool(
n: usize,
a: impl CastInto<Ref<AllocatorOfBool>>,
) -> CppBox<VectorOfBool>
pub unsafe fn from_usize_allocator_of_bool( n: usize, a: impl CastInto<Ref<AllocatorOfBool>>, ) -> CppBox<VectorOfBool>
Calls C++ function: [constructor] void std::vector<bool, std::allocator<bool>>::vector(size_t __n, const std::allocator<bool>& __a = …).
Sourcepub unsafe fn from_usize_bool_allocator_of_bool(
n: usize,
value: impl CastInto<Ref<bool>>,
a: impl CastInto<Ref<AllocatorOfBool>>,
) -> CppBox<VectorOfBool>
pub unsafe fn from_usize_bool_allocator_of_bool( n: usize, value: impl CastInto<Ref<bool>>, a: impl CastInto<Ref<AllocatorOfBool>>, ) -> CppBox<VectorOfBool>
Calls C++ function: [constructor] void std::vector<bool, std::allocator<bool>>::vector(size_t __n, const bool& __value, const std::allocator<bool>& __a = …).
Sourcepub unsafe fn from_vector_of_bool_allocator_of_bool(
x: impl CastInto<Ref<VectorOfBool>>,
a: impl CastInto<Ref<AllocatorOfBool>>,
) -> CppBox<VectorOfBool>
pub unsafe fn from_vector_of_bool_allocator_of_bool( x: impl CastInto<Ref<VectorOfBool>>, a: impl CastInto<Ref<AllocatorOfBool>>, ) -> CppBox<VectorOfBool>
Calls C++ function: [constructor] void std::vector<bool, std::allocator<bool>>::vector(const std::vector<bool, std::allocator<bool>>& __x, const std::allocator<bool>& __a).
Sourcepub unsafe fn from_2_bool_allocator_of_bool(
first: impl CastInto<Ptr<bool>>,
last: impl CastInto<Ptr<bool>>,
alloc: impl CastInto<Ref<AllocatorOfBool>>,
) -> CppBox<VectorOfBool>
pub unsafe fn from_2_bool_allocator_of_bool( first: impl CastInto<Ptr<bool>>, last: impl CastInto<Ptr<bool>>, alloc: impl CastInto<Ref<AllocatorOfBool>>, ) -> CppBox<VectorOfBool>
Calls C++ function: [constructor] void std::vector<bool, std::allocator<bool>>::vector(const bool* first, const bool* last, std::allocator<bool> alloc = …).
Sourcepub unsafe fn from_usize(n: usize) -> CppBox<VectorOfBool>
pub unsafe fn from_usize(n: usize) -> CppBox<VectorOfBool>
Calls C++ function: [constructor] void std::vector<bool, std::allocator<bool>>::vector(size_t __n).
Sourcepub unsafe fn from_usize_bool(
n: usize,
value: impl CastInto<Ref<bool>>,
) -> CppBox<VectorOfBool>
pub unsafe fn from_usize_bool( n: usize, value: impl CastInto<Ref<bool>>, ) -> CppBox<VectorOfBool>
Calls C++ function: [constructor] void std::vector<bool, std::allocator<bool>>::vector(size_t __n, const bool& __value).
Sourcepub unsafe fn from_2_bool(
first: impl CastInto<Ptr<bool>>,
last: impl CastInto<Ptr<bool>>,
) -> CppBox<VectorOfBool>
pub unsafe fn from_2_bool( first: impl CastInto<Ptr<bool>>, last: impl CastInto<Ptr<bool>>, ) -> CppBox<VectorOfBool>
Calls C++ function: [constructor] void std::vector<bool, std::allocator<bool>>::vector(const bool* first, const bool* last).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<VectorOfBool>>,
) -> CppBox<VectorOfBool>
pub unsafe fn new_copy( other: impl CastInto<Ref<VectorOfBool>>, ) -> CppBox<VectorOfBool>
Calls C++ function: [constructor] void std::vector<bool, std::allocator<bool>>::vector(const std::vector<bool, std::allocator<bool>>& other).
Sourcepub unsafe fn pop_back(&mut self)
pub unsafe fn pop_back(&mut self)
Calls C++ function: void std::vector<bool, std::allocator<bool>>::pop_back().
Sourcepub unsafe fn push_back(&mut self, x: impl CastInto<Ref<bool>>)
pub unsafe fn push_back(&mut self, x: impl CastInto<Ref<bool>>)
Calls C++ function: void std::vector<bool, std::allocator<bool>>::push_back(const bool& __x).
Sourcepub unsafe fn reserve(&mut self, n: usize)
pub unsafe fn reserve(&mut self, n: usize)
Calls C++ function: void std::vector<bool, std::allocator<bool>>::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<bool, std::allocator<bool>>::resize(size_t __new_size).
Sourcepub unsafe fn resize_2a(&mut self, new_size: usize, x: impl CastInto<Ref<bool>>)
pub unsafe fn resize_2a(&mut self, new_size: usize, x: impl CastInto<Ref<bool>>)
Calls C++ function: void std::vector<bool, std::allocator<bool>>::resize(size_t __new_size, const bool& __x).
Sourcepub unsafe fn shrink_to_fit(&mut self)
pub unsafe fn shrink_to_fit(&mut self)
Calls C++ function: void std::vector<bool, std::allocator<bool>>::shrink_to_fit().
Sourcepub unsafe fn size(&self) -> usize
pub unsafe fn size(&self) -> usize
Calls C++ function: size_t std::vector<bool, std::allocator<bool>>::size() const.
Sourcepub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfBool>>)
pub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfBool>>)
Calls C++ function: void std::vector<bool, std::allocator<bool>>::swap(std::vector<bool, std::allocator<bool>>& __x).