Struct VectorOfUint

Source
#[repr(C)]
pub struct VectorOfUint { /* private fields */ }
Expand description

C++ class: std::vector<unsigned int, std::allocator<unsigned int>>.

Implementations§

Source§

impl VectorOfUint

Source

pub unsafe fn assign_usize_uint( &mut self, n: usize, val: impl CastInto<Ref<c_uint>>, )

Calls C++ function: void std::vector<unsigned int, std::allocator<unsigned int>>::assign(size_t __n, const unsigned int& __val).

Source

pub unsafe fn assign_2_uint( &mut self, first: impl CastInto<Ptr<c_uint>>, last: impl CastInto<Ptr<c_uint>>, )

Calls C++ function: void std::vector<unsigned int, std::allocator<unsigned int>>::assign(const unsigned int* first, const unsigned int* last).

Source

pub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_uint>

Calls C++ function: unsigned int& std::vector<unsigned int, std::allocator<unsigned int>>::at(size_t __n).

Source

pub unsafe fn at(&self, n: usize) -> Ref<c_uint>

Calls C++ function: const unsigned int& std::vector<unsigned int, std::allocator<unsigned int>>::at(size_t __n) const.

Source

pub unsafe fn back_mut(&mut self) -> MutRef<c_uint>

Calls C++ function: unsigned int& std::vector<unsigned int, std::allocator<unsigned int>>::back().

Source

pub unsafe fn back(&self) -> Ref<c_uint>

Calls C++ function: const unsigned int& std::vector<unsigned int, std::allocator<unsigned int>>::back() const.

Source

pub unsafe fn capacity(&self) -> usize

Calls C++ function: size_t std::vector<unsigned int, std::allocator<unsigned int>>::capacity() const.

Source

pub unsafe fn clear(&mut self)

Calls C++ function: void std::vector<unsigned int, std::allocator<unsigned int>>::clear().

Source

pub unsafe fn copy_from( &mut self, other: impl CastInto<Ref<VectorOfUint>>, ) -> MutRef<VectorOfUint>

Calls C++ function: std::vector<unsigned int, std::allocator<unsigned int>>& std::vector<unsigned int, std::allocator<unsigned int>>::operator=(const std::vector<unsigned int, std::allocator<unsigned int>>& other).

Source

pub unsafe fn data_mut(&mut self) -> MutPtr<c_uint>

Calls C++ function: unsigned int* std::vector<unsigned int, std::allocator<unsigned int>>::data().

Source

pub unsafe fn data(&self) -> Ptr<c_uint>

Calls C++ function: const unsigned int* std::vector<unsigned int, std::allocator<unsigned int>>::data() const.

Source

pub unsafe fn empty(&self) -> bool

Calls C++ function: bool std::vector<unsigned int, std::allocator<unsigned int>>::empty() const.

Source

pub unsafe fn front_mut(&mut self) -> MutRef<c_uint>

Calls C++ function: unsigned int& std::vector<unsigned int, std::allocator<unsigned int>>::front().

Source

pub unsafe fn front(&self) -> Ref<c_uint>

Calls C++ function: const unsigned int& std::vector<unsigned int, std::allocator<unsigned int>>::front() const.

Source

pub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_uint>

Calls C++ function: unsigned int& std::vector<unsigned int, std::allocator<unsigned int>>::operator[](size_t __n).

Source

pub unsafe fn index(&self, n: usize) -> Ref<c_uint>

Calls C++ function: const unsigned int& std::vector<unsigned int, std::allocator<unsigned int>>::operator[](size_t __n) const.

Source

pub unsafe fn max_size(&self) -> usize

Calls C++ function: size_t std::vector<unsigned int, std::allocator<unsigned int>>::max_size() const.

Source

pub unsafe fn new() -> CppBox<VectorOfUint>

Calls C++ function: [constructor] void std::vector<unsigned int, std::allocator<unsigned int>>::vector().

Source

pub unsafe fn from_allocator_of_uint( a: impl CastInto<Ref<AllocatorOfUint>>, ) -> CppBox<VectorOfUint>

Calls C++ function: [constructor] void std::vector<unsigned int, std::allocator<unsigned int>>::vector(const std::allocator<unsigned int>& __a).

Source

pub unsafe fn from_usize_allocator_of_uint( n: usize, a: impl CastInto<Ref<AllocatorOfUint>>, ) -> CppBox<VectorOfUint>

Calls C++ function: [constructor] void std::vector<unsigned int, std::allocator<unsigned int>>::vector(size_t __n, const std::allocator<unsigned int>& __a = …).

Source

pub unsafe fn from_usize_uint_allocator_of_uint( n: usize, value: impl CastInto<Ref<c_uint>>, a: impl CastInto<Ref<AllocatorOfUint>>, ) -> CppBox<VectorOfUint>

Calls C++ function: [constructor] void std::vector<unsigned int, std::allocator<unsigned int>>::vector(size_t __n, const unsigned int& __value, const std::allocator<unsigned int>& __a = …).

Source

pub unsafe fn from_vector_of_uint_allocator_of_uint( x: impl CastInto<Ref<VectorOfUint>>, a: impl CastInto<Ref<AllocatorOfUint>>, ) -> CppBox<VectorOfUint>

Calls C++ function: [constructor] void std::vector<unsigned int, std::allocator<unsigned int>>::vector(const std::vector<unsigned int, std::allocator<unsigned int>>& __x, const std::allocator<unsigned int>& __a).

Source

pub unsafe fn from_2_uint_allocator_of_uint( first: impl CastInto<Ptr<c_uint>>, last: impl CastInto<Ptr<c_uint>>, alloc: impl CastInto<Ref<AllocatorOfUint>>, ) -> CppBox<VectorOfUint>

Calls C++ function: [constructor] void std::vector<unsigned int, std::allocator<unsigned int>>::vector(const unsigned int* first, const unsigned int* last, std::allocator<unsigned int> alloc = …).

Source

pub unsafe fn from_usize(n: usize) -> CppBox<VectorOfUint>

Calls C++ function: [constructor] void std::vector<unsigned int, std::allocator<unsigned int>>::vector(size_t __n).

Source

pub unsafe fn from_usize_uint( n: usize, value: impl CastInto<Ref<c_uint>>, ) -> CppBox<VectorOfUint>

Calls C++ function: [constructor] void std::vector<unsigned int, std::allocator<unsigned int>>::vector(size_t __n, const unsigned int& __value).

Source

pub unsafe fn from_2_uint( first: impl CastInto<Ptr<c_uint>>, last: impl CastInto<Ptr<c_uint>>, ) -> CppBox<VectorOfUint>

Calls C++ function: [constructor] void std::vector<unsigned int, std::allocator<unsigned int>>::vector(const unsigned int* first, const unsigned int* last).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<VectorOfUint>>, ) -> CppBox<VectorOfUint>

Calls C++ function: [constructor] void std::vector<unsigned int, std::allocator<unsigned int>>::vector(const std::vector<unsigned int, std::allocator<unsigned int>>& other).

Source

pub unsafe fn pop_back(&mut self)

Calls C++ function: void std::vector<unsigned int, std::allocator<unsigned int>>::pop_back().

Source

pub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_uint>>)

Calls C++ function: void std::vector<unsigned int, std::allocator<unsigned int>>::push_back(const unsigned int& __x).

Source

pub unsafe fn reserve(&mut self, n: usize)

Calls C++ function: void std::vector<unsigned int, std::allocator<unsigned int>>::reserve(size_t __n).

Source

pub unsafe fn resize_1a(&mut self, new_size: usize)

Calls C++ function: void std::vector<unsigned int, std::allocator<unsigned int>>::resize(size_t __new_size).

Source

pub unsafe fn resize_2a( &mut self, new_size: usize, x: impl CastInto<Ref<c_uint>>, )

Calls C++ function: void std::vector<unsigned int, std::allocator<unsigned int>>::resize(size_t __new_size, const unsigned int& __x).

Source

pub unsafe fn shrink_to_fit(&mut self)

Calls C++ function: void std::vector<unsigned int, std::allocator<unsigned int>>::shrink_to_fit().

Source

pub unsafe fn size(&self) -> usize

Calls C++ function: size_t std::vector<unsigned int, std::allocator<unsigned int>>::size() const.

Source

pub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfUint>>)

Calls C++ function: void std::vector<unsigned int, std::allocator<unsigned int>>::swap(std::vector<unsigned int, std::allocator<unsigned int>>& __x).

Trait Implementations§

Source§

impl CppDeletable for VectorOfUint

Source§

unsafe fn delete(&mut self)

Calls C++ function: [destructor] void std::vector<unsigned int, std::allocator<unsigned int>>::~vector().

Source§

impl Data for VectorOfUint

Source§

unsafe fn data(&self) -> Ptr<c_uint>

Calls C++ function: const unsigned int* std::vector<unsigned int, std::allocator<unsigned int>>::data() const.

Source§

type Output = Ptr<u32>

Source§

impl DataMut for VectorOfUint

Source§

unsafe fn data_mut(&mut self) -> MutPtr<c_uint>

Calls C++ function: unsigned int* std::vector<unsigned int, std::allocator<unsigned int>>::data().

Source§

type Output = MutPtr<u32>

Source§

impl Ge<Ref<VectorOfUint>> for VectorOfUint

Source§

unsafe fn ge(&self, y: &Ref<VectorOfUint>) -> bool

Calls C++ function: bool std::operator>=(const std::vector<unsigned int, std::allocator<unsigned int>>& __x, const std::vector<unsigned int, std::allocator<unsigned int>>& __y).

Source§

impl Gt<Ref<VectorOfUint>> for VectorOfUint

Source§

unsafe fn gt(&self, y: &Ref<VectorOfUint>) -> bool

Calls C++ function: bool std::operator>(const std::vector<unsigned int, std::allocator<unsigned int>>& __x, const std::vector<unsigned int, std::allocator<unsigned int>>& __y).

Source§

impl Le<Ref<VectorOfUint>> for VectorOfUint

Source§

unsafe fn le(&self, y: &Ref<VectorOfUint>) -> bool

Calls C++ function: bool std::operator<=(const std::vector<unsigned int, std::allocator<unsigned int>>& __x, const std::vector<unsigned int, std::allocator<unsigned int>>& __y).

Source§

impl Lt<Ref<VectorOfUint>> for VectorOfUint

Source§

unsafe fn lt(&self, y: &Ref<VectorOfUint>) -> bool

Calls C++ function: bool std::operator<(const std::vector<unsigned int, std::allocator<unsigned int>>& __x, const std::vector<unsigned int, std::allocator<unsigned int>>& __y).

Source§

impl PartialEq<Ref<VectorOfUint>> for VectorOfUint

Source§

fn eq(&self, y: &Ref<VectorOfUint>) -> bool

Calls C++ function: bool std::operator==(const std::vector<unsigned int, std::allocator<unsigned int>>& __x, const std::vector<unsigned int, std::allocator<unsigned int>>& __y).

1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Size for VectorOfUint

Source§

unsafe fn size(&self) -> usize

Calls C++ function: size_t std::vector<unsigned int, std::allocator<unsigned int>>::size() const.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>

Convert type of a mutable pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VectorAsMutSlice for V
where V: DataMut<Output = MutPtr<T>> + Size,

Source§

type Item = T

Source§

unsafe fn vector_as_mut_slice(&mut self) -> &mut [T]

Returns the content of the vector as a slice. Read more
Source§

impl<V, T> VectorAsSlice for V
where V: Data<Output = Ptr<T>> + Size,

Source§

type Item = T

Source§

unsafe fn vector_as_slice(&self) -> &[T]

Returns the content of the vector as a slice. Read more