[][src]Struct cpp_std::VectorOfInt

#[repr(C)]
pub struct VectorOfInt { /* fields omitted */ }

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

Methods

impl VectorOfInt[src]

pub unsafe fn assign_usize_int(
    &mut self,
    n: usize,
    val: impl CastInto<Ref<c_int>>
)
[src]

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

pub unsafe fn assign_2_int(
    &mut self,
    first: impl CastInto<Ptr<c_int>>,
    last: impl CastInto<Ptr<c_int>>
)
[src]

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

pub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_int>[src]

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

pub unsafe fn at(&self, n: usize) -> Ref<c_int>[src]

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

pub unsafe fn back_mut(&mut self) -> MutRef<c_int>[src]

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

pub unsafe fn back(&self) -> Ref<c_int>[src]

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

pub unsafe fn capacity(&self) -> usize[src]

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

pub unsafe fn clear(&mut self)[src]

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

pub unsafe fn copy_from(
    &mut self,
    other: impl CastInto<Ref<VectorOfInt>>
) -> MutRef<VectorOfInt>
[src]

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

pub unsafe fn data_mut(&mut self) -> MutPtr<c_int>[src]

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

pub unsafe fn data(&self) -> Ptr<c_int>[src]

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

pub unsafe fn empty(&self) -> bool[src]

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

pub unsafe fn front_mut(&mut self) -> MutRef<c_int>[src]

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

pub unsafe fn front(&self) -> Ref<c_int>[src]

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

pub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_int>[src]

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

pub unsafe fn index(&self, n: usize) -> Ref<c_int>[src]

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

pub unsafe fn max_size(&self) -> usize[src]

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

pub unsafe fn new() -> CppBox<VectorOfInt>[src]

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

pub unsafe fn from_allocator_of_int(
    a: impl CastInto<Ref<AllocatorOfInt>>
) -> CppBox<VectorOfInt>
[src]

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

pub unsafe fn from_usize_allocator_of_int(
    n: usize,
    a: impl CastInto<Ref<AllocatorOfInt>>
) -> CppBox<VectorOfInt>
[src]

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

pub unsafe fn from_usize_int_allocator_of_int(
    n: usize,
    value: impl CastInto<Ref<c_int>>,
    a: impl CastInto<Ref<AllocatorOfInt>>
) -> CppBox<VectorOfInt>
[src]

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

pub unsafe fn from_vector_of_int_allocator_of_int(
    x: impl CastInto<Ref<VectorOfInt>>,
    a: impl CastInto<Ref<AllocatorOfInt>>
) -> CppBox<VectorOfInt>
[src]

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

pub unsafe fn from_2_int_allocator_of_int(
    first: impl CastInto<Ptr<c_int>>,
    last: impl CastInto<Ptr<c_int>>,
    alloc: impl CastInto<Ref<AllocatorOfInt>>
) -> CppBox<VectorOfInt>
[src]

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

pub unsafe fn from_usize(n: usize) -> CppBox<VectorOfInt>[src]

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

pub unsafe fn from_usize_int(
    n: usize,
    value: impl CastInto<Ref<c_int>>
) -> CppBox<VectorOfInt>
[src]

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

pub unsafe fn from_2_int(
    first: impl CastInto<Ptr<c_int>>,
    last: impl CastInto<Ptr<c_int>>
) -> CppBox<VectorOfInt>
[src]

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

pub unsafe fn new_copy(
    other: impl CastInto<Ref<VectorOfInt>>
) -> CppBox<VectorOfInt>
[src]

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

pub unsafe fn pop_back(&mut self)[src]

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

pub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_int>>)[src]

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

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

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

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

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

pub unsafe fn resize_2a(
    &mut self,
    new_size: usize,
    x: impl CastInto<Ref<c_int>>
)
[src]

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

pub unsafe fn shrink_to_fit(&mut self)[src]

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

pub unsafe fn size(&self) -> usize[src]

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

pub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfInt>>)[src]

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

Trait Implementations

impl PartialEq<Ref<VectorOfInt>> for VectorOfInt[src]

fn eq(&self, y: &Ref<VectorOfInt>) -> bool[src]

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

impl Lt<Ref<VectorOfInt>> for VectorOfInt[src]

unsafe fn lt(&self, y: &Ref<VectorOfInt>) -> bool[src]

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

impl Le<Ref<VectorOfInt>> for VectorOfInt[src]

unsafe fn le(&self, y: &Ref<VectorOfInt>) -> bool[src]

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

impl Gt<Ref<VectorOfInt>> for VectorOfInt[src]

unsafe fn gt(&self, y: &Ref<VectorOfInt>) -> bool[src]

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

impl Ge<Ref<VectorOfInt>> for VectorOfInt[src]

unsafe fn ge(&self, y: &Ref<VectorOfInt>) -> bool[src]

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

impl CppDeletable for VectorOfInt[src]

unsafe fn delete(&mut self)[src]

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

impl Data for VectorOfInt[src]

type Output = Ptr<c_int>

unsafe fn data(&self) -> Ptr<c_int>[src]

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

impl DataMut for VectorOfInt[src]

type Output = MutPtr<c_int>

unsafe fn data_mut(&mut self) -> MutPtr<c_int>[src]

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

impl Size for VectorOfInt[src]

unsafe fn size(&self) -> usize[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

type Item = T

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

type Item = T