Struct VectorOfVoid

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

C++ class: std::vector<void*, std::allocator<void*>>.

Implementations§

Source§

impl VectorOfVoid

Source

pub unsafe fn at(&mut self, n: usize) -> MutRef<*mut c_void>

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

Source

pub unsafe fn back(&mut self) -> MutRef<*mut c_void>

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

Source

pub unsafe fn capacity(&self) -> usize

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

Source

pub unsafe fn clear(&mut self)

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

Source

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

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

Source

pub unsafe fn data(&mut self) -> MutPtr<*mut c_void>

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

Source

pub unsafe fn empty(&self) -> bool

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

Source

pub unsafe fn front(&mut self) -> MutRef<*mut c_void>

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

Source

pub unsafe fn index(&mut self, n: usize) -> MutRef<*mut c_void>

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

Source

pub unsafe fn max_size(&self) -> usize

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

Source

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

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

Source

pub unsafe fn from_allocator_of_void( a: impl CastInto<Ref<AllocatorOfVoid>>, ) -> CppBox<VectorOfVoid>

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

Source

pub unsafe fn from_usize_allocator_of_void( n: usize, a: impl CastInto<Ref<AllocatorOfVoid>>, ) -> CppBox<VectorOfVoid>

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

Source

pub unsafe fn from_vector_of_void_allocator_of_void( x: impl CastInto<Ref<VectorOfVoid>>, a: impl CastInto<Ref<AllocatorOfVoid>>, ) -> CppBox<VectorOfVoid>

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

Source

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

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

Source

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

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

Source

pub unsafe fn pop_back(&mut self)

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

Source

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

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

Source

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

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

Source

pub unsafe fn shrink_to_fit(&mut self)

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

Source

pub unsafe fn size(&self) -> usize

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

Source

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

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

Trait Implementations§

Source§

impl CppDeletable for VectorOfVoid

Source§

unsafe fn delete(&mut self)

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

Source§

impl DataMut for VectorOfVoid

Source§

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

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

Source§

type Output = MutPtr<*mut c_void>

Source§

impl Ge<Ref<VectorOfVoid>> for VectorOfVoid

Source§

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

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

Source§

impl Gt<Ref<VectorOfVoid>> for VectorOfVoid

Source§

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

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

Source§

impl Le<Ref<VectorOfVoid>> for VectorOfVoid

Source§

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

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

Source§

impl Lt<Ref<VectorOfVoid>> for VectorOfVoid

Source§

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

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

Source§

impl PartialEq<Ref<VectorOfVoid>> for VectorOfVoid

Source§

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

Calls C++ function: bool std::operator==(const std::vector<void*, std::allocator<void*>>& __x, const std::vector<void*, std::allocator<void*>>& __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 VectorOfVoid

Source§

unsafe fn size(&self) -> usize

Calls C++ function: size_t std::vector<void*, std::allocator<void*>>::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