Struct VectorOfWcharT

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

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

Implementations§

Source§

impl VectorOfWcharT

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn capacity(&self) -> usize

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

Source

pub unsafe fn clear(&mut self)

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn empty(&self) -> bool

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn max_size(&self) -> usize

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

Source

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

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

Source

pub unsafe fn from_allocator_of_wchar_t( a: impl CastInto<Ref<AllocatorOfWcharT>>, ) -> CppBox<VectorOfWcharT>

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

Source

pub unsafe fn from_usize_allocator_of_wchar_t( n: usize, a: impl CastInto<Ref<AllocatorOfWcharT>>, ) -> CppBox<VectorOfWcharT>

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

Source

pub unsafe fn from_usize_wchar_t_allocator_of_wchar_t( n: usize, value: impl CastInto<Ref<wchar_t>>, a: impl CastInto<Ref<AllocatorOfWcharT>>, ) -> CppBox<VectorOfWcharT>

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

Source

pub unsafe fn from_vector_of_wchar_t_allocator_of_wchar_t( x: impl CastInto<Ref<VectorOfWcharT>>, a: impl CastInto<Ref<AllocatorOfWcharT>>, ) -> CppBox<VectorOfWcharT>

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

Source

pub unsafe fn from_2_wchar_t_allocator_of_wchar_t( first: impl CastInto<Ptr<wchar_t>>, last: impl CastInto<Ptr<wchar_t>>, alloc: impl CastInto<Ref<AllocatorOfWcharT>>, ) -> CppBox<VectorOfWcharT>

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

Source

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

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

Source

pub unsafe fn from_usize_wchar_t( n: usize, value: impl CastInto<Ref<wchar_t>>, ) -> CppBox<VectorOfWcharT>

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

Source

pub unsafe fn from_2_wchar_t( first: impl CastInto<Ptr<wchar_t>>, last: impl CastInto<Ptr<wchar_t>>, ) -> CppBox<VectorOfWcharT>

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

Source

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

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

Source

pub unsafe fn pop_back(&mut self)

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn shrink_to_fit(&mut self)

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

Source

pub unsafe fn size(&self) -> usize

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

Source

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

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

Trait Implementations§

Source§

impl CppDeletable for VectorOfWcharT

Source§

unsafe fn delete(&mut self)

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

Source§

impl Data for VectorOfWcharT

Source§

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

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

Source§

type Output = Ptr<i32>

Source§

impl DataMut for VectorOfWcharT

Source§

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

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

Source§

type Output = MutPtr<i32>

Source§

impl Ge<Ref<VectorOfWcharT>> for VectorOfWcharT

Source§

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

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

Source§

impl Gt<Ref<VectorOfWcharT>> for VectorOfWcharT

Source§

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

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

Source§

impl Le<Ref<VectorOfWcharT>> for VectorOfWcharT

Source§

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

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

Source§

impl Lt<Ref<VectorOfWcharT>> for VectorOfWcharT

Source§

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

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

Source§

impl PartialEq<Ref<VectorOfWcharT>> for VectorOfWcharT

Source§

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

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

Source§

unsafe fn size(&self) -> usize

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