#[repr(C)]pub struct VectorOfUchar { /* private fields */ }Expand description
C++ class: std::vector<unsigned char, std::allocator<unsigned char>>.
Implementations§
Source§impl VectorOfUchar
impl VectorOfUchar
Sourcepub unsafe fn assign_usize_uchar(
&mut self,
n: usize,
val: impl CastInto<Ref<c_uchar>>,
)
pub unsafe fn assign_usize_uchar( &mut self, n: usize, val: impl CastInto<Ref<c_uchar>>, )
Calls C++ function: void std::vector<unsigned char, std::allocator<unsigned char>>::assign(size_t __n, const unsigned char& __val).
Sourcepub unsafe fn assign_2_uchar(
&mut self,
first: impl CastInto<Ptr<c_uchar>>,
last: impl CastInto<Ptr<c_uchar>>,
)
pub unsafe fn assign_2_uchar( &mut self, first: impl CastInto<Ptr<c_uchar>>, last: impl CastInto<Ptr<c_uchar>>, )
Calls C++ function: void std::vector<unsigned char, std::allocator<unsigned char>>::assign(const unsigned char* first, const unsigned char* last).
Sourcepub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_uchar>
pub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_uchar>
Calls C++ function: unsigned char& std::vector<unsigned char, std::allocator<unsigned char>>::at(size_t __n).
Sourcepub unsafe fn at(&self, n: usize) -> Ref<c_uchar>
pub unsafe fn at(&self, n: usize) -> Ref<c_uchar>
Calls C++ function: const unsigned char& std::vector<unsigned char, std::allocator<unsigned char>>::at(size_t __n) const.
Sourcepub unsafe fn back_mut(&mut self) -> MutRef<c_uchar>
pub unsafe fn back_mut(&mut self) -> MutRef<c_uchar>
Calls C++ function: unsigned char& std::vector<unsigned char, std::allocator<unsigned char>>::back().
Sourcepub unsafe fn back(&self) -> Ref<c_uchar>
pub unsafe fn back(&self) -> Ref<c_uchar>
Calls C++ function: const unsigned char& std::vector<unsigned char, std::allocator<unsigned char>>::back() const.
Sourcepub unsafe fn capacity(&self) -> usize
pub unsafe fn capacity(&self) -> usize
Calls C++ function: size_t std::vector<unsigned char, std::allocator<unsigned char>>::capacity() const.
Sourcepub unsafe fn clear(&mut self)
pub unsafe fn clear(&mut self)
Calls C++ function: void std::vector<unsigned char, std::allocator<unsigned char>>::clear().
Sourcepub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<VectorOfUchar>>,
) -> MutRef<VectorOfUchar>
pub unsafe fn copy_from( &mut self, other: impl CastInto<Ref<VectorOfUchar>>, ) -> MutRef<VectorOfUchar>
Calls C++ function: std::vector<unsigned char, std::allocator<unsigned char>>& std::vector<unsigned char, std::allocator<unsigned char>>::operator=(const std::vector<unsigned char, std::allocator<unsigned char>>& other).
Sourcepub unsafe fn data_mut(&mut self) -> MutPtr<c_uchar>
pub unsafe fn data_mut(&mut self) -> MutPtr<c_uchar>
Calls C++ function: unsigned char* std::vector<unsigned char, std::allocator<unsigned char>>::data().
Sourcepub unsafe fn data(&self) -> Ptr<c_uchar>
pub unsafe fn data(&self) -> Ptr<c_uchar>
Calls C++ function: const unsigned char* std::vector<unsigned char, std::allocator<unsigned char>>::data() const.
Sourcepub unsafe fn empty(&self) -> bool
pub unsafe fn empty(&self) -> bool
Calls C++ function: bool std::vector<unsigned char, std::allocator<unsigned char>>::empty() const.
Sourcepub unsafe fn front_mut(&mut self) -> MutRef<c_uchar>
pub unsafe fn front_mut(&mut self) -> MutRef<c_uchar>
Calls C++ function: unsigned char& std::vector<unsigned char, std::allocator<unsigned char>>::front().
Sourcepub unsafe fn front(&self) -> Ref<c_uchar>
pub unsafe fn front(&self) -> Ref<c_uchar>
Calls C++ function: const unsigned char& std::vector<unsigned char, std::allocator<unsigned char>>::front() const.
Sourcepub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_uchar>
pub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_uchar>
Calls C++ function: unsigned char& std::vector<unsigned char, std::allocator<unsigned char>>::operator[](size_t __n).
Sourcepub unsafe fn index(&self, n: usize) -> Ref<c_uchar>
pub unsafe fn index(&self, n: usize) -> Ref<c_uchar>
Calls C++ function: const unsigned char& std::vector<unsigned char, std::allocator<unsigned char>>::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<unsigned char, std::allocator<unsigned char>>::max_size() const.
Sourcepub unsafe fn new() -> CppBox<VectorOfUchar>
pub unsafe fn new() -> CppBox<VectorOfUchar>
Calls C++ function: [constructor] void std::vector<unsigned char, std::allocator<unsigned char>>::vector().
Sourcepub unsafe fn from_allocator_of_uchar(
a: impl CastInto<Ref<AllocatorOfUchar>>,
) -> CppBox<VectorOfUchar>
pub unsafe fn from_allocator_of_uchar( a: impl CastInto<Ref<AllocatorOfUchar>>, ) -> CppBox<VectorOfUchar>
Calls C++ function: [constructor] void std::vector<unsigned char, std::allocator<unsigned char>>::vector(const std::allocator<unsigned char>& __a).
Sourcepub unsafe fn from_usize_allocator_of_uchar(
n: usize,
a: impl CastInto<Ref<AllocatorOfUchar>>,
) -> CppBox<VectorOfUchar>
pub unsafe fn from_usize_allocator_of_uchar( n: usize, a: impl CastInto<Ref<AllocatorOfUchar>>, ) -> CppBox<VectorOfUchar>
Calls C++ function: [constructor] void std::vector<unsigned char, std::allocator<unsigned char>>::vector(size_t __n, const std::allocator<unsigned char>& __a = …).
Sourcepub unsafe fn from_usize_uchar_allocator_of_uchar(
n: usize,
value: impl CastInto<Ref<c_uchar>>,
a: impl CastInto<Ref<AllocatorOfUchar>>,
) -> CppBox<VectorOfUchar>
pub unsafe fn from_usize_uchar_allocator_of_uchar( n: usize, value: impl CastInto<Ref<c_uchar>>, a: impl CastInto<Ref<AllocatorOfUchar>>, ) -> CppBox<VectorOfUchar>
Calls C++ function: [constructor] void std::vector<unsigned char, std::allocator<unsigned char>>::vector(size_t __n, const unsigned char& __value, const std::allocator<unsigned char>& __a = …).
Sourcepub unsafe fn from_vector_of_uchar_allocator_of_uchar(
x: impl CastInto<Ref<VectorOfUchar>>,
a: impl CastInto<Ref<AllocatorOfUchar>>,
) -> CppBox<VectorOfUchar>
pub unsafe fn from_vector_of_uchar_allocator_of_uchar( x: impl CastInto<Ref<VectorOfUchar>>, a: impl CastInto<Ref<AllocatorOfUchar>>, ) -> CppBox<VectorOfUchar>
Calls C++ function: [constructor] void std::vector<unsigned char, std::allocator<unsigned char>>::vector(const std::vector<unsigned char, std::allocator<unsigned char>>& __x, const std::allocator<unsigned char>& __a).
Sourcepub unsafe fn from_2_uchar_allocator_of_uchar(
first: impl CastInto<Ptr<c_uchar>>,
last: impl CastInto<Ptr<c_uchar>>,
alloc: impl CastInto<Ref<AllocatorOfUchar>>,
) -> CppBox<VectorOfUchar>
pub unsafe fn from_2_uchar_allocator_of_uchar( first: impl CastInto<Ptr<c_uchar>>, last: impl CastInto<Ptr<c_uchar>>, alloc: impl CastInto<Ref<AllocatorOfUchar>>, ) -> CppBox<VectorOfUchar>
Calls C++ function: [constructor] void std::vector<unsigned char, std::allocator<unsigned char>>::vector(const unsigned char* first, const unsigned char* last, std::allocator<unsigned char> alloc = …).
Sourcepub unsafe fn from_usize(n: usize) -> CppBox<VectorOfUchar>
pub unsafe fn from_usize(n: usize) -> CppBox<VectorOfUchar>
Calls C++ function: [constructor] void std::vector<unsigned char, std::allocator<unsigned char>>::vector(size_t __n).
Sourcepub unsafe fn from_usize_uchar(
n: usize,
value: impl CastInto<Ref<c_uchar>>,
) -> CppBox<VectorOfUchar>
pub unsafe fn from_usize_uchar( n: usize, value: impl CastInto<Ref<c_uchar>>, ) -> CppBox<VectorOfUchar>
Calls C++ function: [constructor] void std::vector<unsigned char, std::allocator<unsigned char>>::vector(size_t __n, const unsigned char& __value).
Sourcepub unsafe fn from_2_uchar(
first: impl CastInto<Ptr<c_uchar>>,
last: impl CastInto<Ptr<c_uchar>>,
) -> CppBox<VectorOfUchar>
pub unsafe fn from_2_uchar( first: impl CastInto<Ptr<c_uchar>>, last: impl CastInto<Ptr<c_uchar>>, ) -> CppBox<VectorOfUchar>
Calls C++ function: [constructor] void std::vector<unsigned char, std::allocator<unsigned char>>::vector(const unsigned char* first, const unsigned char* last).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<VectorOfUchar>>,
) -> CppBox<VectorOfUchar>
pub unsafe fn new_copy( other: impl CastInto<Ref<VectorOfUchar>>, ) -> CppBox<VectorOfUchar>
Calls C++ function: [constructor] void std::vector<unsigned char, std::allocator<unsigned char>>::vector(const std::vector<unsigned char, std::allocator<unsigned char>>& other).
Sourcepub unsafe fn pop_back(&mut self)
pub unsafe fn pop_back(&mut self)
Calls C++ function: void std::vector<unsigned char, std::allocator<unsigned char>>::pop_back().
Sourcepub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_uchar>>)
pub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_uchar>>)
Calls C++ function: void std::vector<unsigned char, std::allocator<unsigned char>>::push_back(const unsigned char& __x).
Sourcepub unsafe fn reserve(&mut self, n: usize)
pub unsafe fn reserve(&mut self, n: usize)
Calls C++ function: void std::vector<unsigned char, std::allocator<unsigned char>>::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<unsigned char, std::allocator<unsigned char>>::resize(size_t __new_size).
Sourcepub unsafe fn resize_2a(
&mut self,
new_size: usize,
x: impl CastInto<Ref<c_uchar>>,
)
pub unsafe fn resize_2a( &mut self, new_size: usize, x: impl CastInto<Ref<c_uchar>>, )
Calls C++ function: void std::vector<unsigned char, std::allocator<unsigned char>>::resize(size_t __new_size, const unsigned char& __x).
Sourcepub unsafe fn shrink_to_fit(&mut self)
pub unsafe fn shrink_to_fit(&mut self)
Calls C++ function: void std::vector<unsigned char, std::allocator<unsigned char>>::shrink_to_fit().
Sourcepub unsafe fn size(&self) -> usize
pub unsafe fn size(&self) -> usize
Calls C++ function: size_t std::vector<unsigned char, std::allocator<unsigned char>>::size() const.
Sourcepub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfUchar>>)
pub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfUchar>>)
Calls C++ function: void std::vector<unsigned char, std::allocator<unsigned char>>::swap(std::vector<unsigned char, std::allocator<unsigned char>>& __x).