#[repr(C)]pub struct VectorOfU8 { /* private fields */ }Expand description
C++ class: std::vector<uint8_t, std::allocator<uint8_t>>.
Implementations§
Source§impl VectorOfU8
impl VectorOfU8
Sourcepub unsafe fn assign_usize_u8(&mut self, n: usize, val: impl CastInto<Ref<u8>>)
pub unsafe fn assign_usize_u8(&mut self, n: usize, val: impl CastInto<Ref<u8>>)
Calls C++ function: void std::vector<uint8_t, std::allocator<uint8_t>>::assign(size_t __n, const uint8_t& __val).
Sourcepub unsafe fn assign_2_u8(
&mut self,
first: impl CastInto<Ptr<u8>>,
last: impl CastInto<Ptr<u8>>,
)
pub unsafe fn assign_2_u8( &mut self, first: impl CastInto<Ptr<u8>>, last: impl CastInto<Ptr<u8>>, )
Calls C++ function: void std::vector<uint8_t, std::allocator<uint8_t>>::assign(const uint8_t* first, const uint8_t* last).
Sourcepub unsafe fn at_mut(&mut self, n: usize) -> MutRef<u8>
pub unsafe fn at_mut(&mut self, n: usize) -> MutRef<u8>
Calls C++ function: uint8_t& std::vector<uint8_t, std::allocator<uint8_t>>::at(size_t __n).
Sourcepub unsafe fn at(&self, n: usize) -> Ref<u8>
pub unsafe fn at(&self, n: usize) -> Ref<u8>
Calls C++ function: const uint8_t& std::vector<uint8_t, std::allocator<uint8_t>>::at(size_t __n) const.
Sourcepub unsafe fn back_mut(&mut self) -> MutRef<u8>
pub unsafe fn back_mut(&mut self) -> MutRef<u8>
Calls C++ function: uint8_t& std::vector<uint8_t, std::allocator<uint8_t>>::back().
Sourcepub unsafe fn back(&self) -> Ref<u8>
pub unsafe fn back(&self) -> Ref<u8>
Calls C++ function: const uint8_t& std::vector<uint8_t, std::allocator<uint8_t>>::back() const.
Sourcepub unsafe fn capacity(&self) -> usize
pub unsafe fn capacity(&self) -> usize
Calls C++ function: size_t std::vector<uint8_t, std::allocator<uint8_t>>::capacity() const.
Sourcepub unsafe fn clear(&mut self)
pub unsafe fn clear(&mut self)
Calls C++ function: void std::vector<uint8_t, std::allocator<uint8_t>>::clear().
Sourcepub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<VectorOfU8>>,
) -> MutRef<VectorOfU8>
pub unsafe fn copy_from( &mut self, other: impl CastInto<Ref<VectorOfU8>>, ) -> MutRef<VectorOfU8>
Calls C++ function: std::vector<uint8_t, std::allocator<uint8_t>>& std::vector<uint8_t, std::allocator<uint8_t>>::operator=(const std::vector<uint8_t, std::allocator<uint8_t>>& other).
Sourcepub unsafe fn data_mut(&mut self) -> MutPtr<u8>
pub unsafe fn data_mut(&mut self) -> MutPtr<u8>
Calls C++ function: uint8_t* std::vector<uint8_t, std::allocator<uint8_t>>::data().
Sourcepub unsafe fn data(&self) -> Ptr<u8>
pub unsafe fn data(&self) -> Ptr<u8>
Calls C++ function: const uint8_t* std::vector<uint8_t, std::allocator<uint8_t>>::data() const.
Sourcepub unsafe fn empty(&self) -> bool
pub unsafe fn empty(&self) -> bool
Calls C++ function: bool std::vector<uint8_t, std::allocator<uint8_t>>::empty() const.
Sourcepub unsafe fn front_mut(&mut self) -> MutRef<u8>
pub unsafe fn front_mut(&mut self) -> MutRef<u8>
Calls C++ function: uint8_t& std::vector<uint8_t, std::allocator<uint8_t>>::front().
Sourcepub unsafe fn front(&self) -> Ref<u8>
pub unsafe fn front(&self) -> Ref<u8>
Calls C++ function: const uint8_t& std::vector<uint8_t, std::allocator<uint8_t>>::front() const.
Sourcepub unsafe fn index_mut(&mut self, n: usize) -> MutRef<u8>
pub unsafe fn index_mut(&mut self, n: usize) -> MutRef<u8>
Calls C++ function: uint8_t& std::vector<uint8_t, std::allocator<uint8_t>>::operator[](size_t __n).
Sourcepub unsafe fn index(&self, n: usize) -> Ref<u8>
pub unsafe fn index(&self, n: usize) -> Ref<u8>
Calls C++ function: const uint8_t& std::vector<uint8_t, std::allocator<uint8_t>>::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<uint8_t, std::allocator<uint8_t>>::max_size() const.
Sourcepub unsafe fn new() -> CppBox<VectorOfU8>
pub unsafe fn new() -> CppBox<VectorOfU8>
Calls C++ function: [constructor] void std::vector<uint8_t, std::allocator<uint8_t>>::vector().
Sourcepub unsafe fn from_allocator_of_u8(
a: impl CastInto<Ref<AllocatorOfU8>>,
) -> CppBox<VectorOfU8>
pub unsafe fn from_allocator_of_u8( a: impl CastInto<Ref<AllocatorOfU8>>, ) -> CppBox<VectorOfU8>
Calls C++ function: [constructor] void std::vector<uint8_t, std::allocator<uint8_t>>::vector(const std::allocator<uint8_t>& __a).
Sourcepub unsafe fn from_usize_allocator_of_u8(
n: usize,
a: impl CastInto<Ref<AllocatorOfU8>>,
) -> CppBox<VectorOfU8>
pub unsafe fn from_usize_allocator_of_u8( n: usize, a: impl CastInto<Ref<AllocatorOfU8>>, ) -> CppBox<VectorOfU8>
Calls C++ function: [constructor] void std::vector<uint8_t, std::allocator<uint8_t>>::vector(size_t __n, const std::allocator<uint8_t>& __a = …).
Sourcepub unsafe fn from_usize_u8_allocator_of_u8(
n: usize,
value: impl CastInto<Ref<u8>>,
a: impl CastInto<Ref<AllocatorOfU8>>,
) -> CppBox<VectorOfU8>
pub unsafe fn from_usize_u8_allocator_of_u8( n: usize, value: impl CastInto<Ref<u8>>, a: impl CastInto<Ref<AllocatorOfU8>>, ) -> CppBox<VectorOfU8>
Calls C++ function: [constructor] void std::vector<uint8_t, std::allocator<uint8_t>>::vector(size_t __n, const uint8_t& __value, const std::allocator<uint8_t>& __a = …).
Sourcepub unsafe fn from_vector_of_u8_allocator_of_u8(
x: impl CastInto<Ref<VectorOfU8>>,
a: impl CastInto<Ref<AllocatorOfU8>>,
) -> CppBox<VectorOfU8>
pub unsafe fn from_vector_of_u8_allocator_of_u8( x: impl CastInto<Ref<VectorOfU8>>, a: impl CastInto<Ref<AllocatorOfU8>>, ) -> CppBox<VectorOfU8>
Calls C++ function: [constructor] void std::vector<uint8_t, std::allocator<uint8_t>>::vector(const std::vector<uint8_t, std::allocator<uint8_t>>& __x, const std::allocator<uint8_t>& __a).
Sourcepub unsafe fn from_2_u8_allocator_of_u8(
first: impl CastInto<Ptr<u8>>,
last: impl CastInto<Ptr<u8>>,
alloc: impl CastInto<Ref<AllocatorOfU8>>,
) -> CppBox<VectorOfU8>
pub unsafe fn from_2_u8_allocator_of_u8( first: impl CastInto<Ptr<u8>>, last: impl CastInto<Ptr<u8>>, alloc: impl CastInto<Ref<AllocatorOfU8>>, ) -> CppBox<VectorOfU8>
Calls C++ function: [constructor] void std::vector<uint8_t, std::allocator<uint8_t>>::vector(const uint8_t* first, const uint8_t* last, std::allocator<uint8_t> alloc = …).
Sourcepub unsafe fn from_usize(n: usize) -> CppBox<VectorOfU8>
pub unsafe fn from_usize(n: usize) -> CppBox<VectorOfU8>
Calls C++ function: [constructor] void std::vector<uint8_t, std::allocator<uint8_t>>::vector(size_t __n).
Sourcepub unsafe fn from_usize_u8(
n: usize,
value: impl CastInto<Ref<u8>>,
) -> CppBox<VectorOfU8>
pub unsafe fn from_usize_u8( n: usize, value: impl CastInto<Ref<u8>>, ) -> CppBox<VectorOfU8>
Calls C++ function: [constructor] void std::vector<uint8_t, std::allocator<uint8_t>>::vector(size_t __n, const uint8_t& __value).
Sourcepub unsafe fn from_2_u8(
first: impl CastInto<Ptr<u8>>,
last: impl CastInto<Ptr<u8>>,
) -> CppBox<VectorOfU8>
pub unsafe fn from_2_u8( first: impl CastInto<Ptr<u8>>, last: impl CastInto<Ptr<u8>>, ) -> CppBox<VectorOfU8>
Calls C++ function: [constructor] void std::vector<uint8_t, std::allocator<uint8_t>>::vector(const uint8_t* first, const uint8_t* last).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<VectorOfU8>>,
) -> CppBox<VectorOfU8>
pub unsafe fn new_copy( other: impl CastInto<Ref<VectorOfU8>>, ) -> CppBox<VectorOfU8>
Calls C++ function: [constructor] void std::vector<uint8_t, std::allocator<uint8_t>>::vector(const std::vector<uint8_t, std::allocator<uint8_t>>& other).
Sourcepub unsafe fn pop_back(&mut self)
pub unsafe fn pop_back(&mut self)
Calls C++ function: void std::vector<uint8_t, std::allocator<uint8_t>>::pop_back().
Sourcepub unsafe fn push_back(&mut self, x: impl CastInto<Ref<u8>>)
pub unsafe fn push_back(&mut self, x: impl CastInto<Ref<u8>>)
Calls C++ function: void std::vector<uint8_t, std::allocator<uint8_t>>::push_back(const uint8_t& __x).
Sourcepub unsafe fn reserve(&mut self, n: usize)
pub unsafe fn reserve(&mut self, n: usize)
Calls C++ function: void std::vector<uint8_t, std::allocator<uint8_t>>::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<uint8_t, std::allocator<uint8_t>>::resize(size_t __new_size).
Sourcepub unsafe fn resize_2a(&mut self, new_size: usize, x: impl CastInto<Ref<u8>>)
pub unsafe fn resize_2a(&mut self, new_size: usize, x: impl CastInto<Ref<u8>>)
Calls C++ function: void std::vector<uint8_t, std::allocator<uint8_t>>::resize(size_t __new_size, const uint8_t& __x).
Sourcepub unsafe fn shrink_to_fit(&mut self)
pub unsafe fn shrink_to_fit(&mut self)
Calls C++ function: void std::vector<uint8_t, std::allocator<uint8_t>>::shrink_to_fit().
Sourcepub unsafe fn size(&self) -> usize
pub unsafe fn size(&self) -> usize
Calls C++ function: size_t std::vector<uint8_t, std::allocator<uint8_t>>::size() const.
Sourcepub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfU8>>)
pub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfU8>>)
Calls C++ function: void std::vector<uint8_t, std::allocator<uint8_t>>::swap(std::vector<uint8_t, std::allocator<uint8_t>>& __x).