Struct VectorOfSchar

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

C++ class: std::vector<signed char, std::allocator<signed char>>.

Implementations§

Source§

impl VectorOfSchar

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn capacity(&self) -> usize

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

Source

pub unsafe fn clear(&mut self)

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn empty(&self) -> bool

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn max_size(&self) -> usize

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

Source

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

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

Source

pub unsafe fn from_allocator_of_schar( a: impl CastInto<Ref<AllocatorOfSchar>>, ) -> CppBox<VectorOfSchar>

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

Source

pub unsafe fn from_usize_allocator_of_schar( n: usize, a: impl CastInto<Ref<AllocatorOfSchar>>, ) -> CppBox<VectorOfSchar>

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

Source

pub unsafe fn from_usize_schar_allocator_of_schar( n: usize, value: impl CastInto<Ref<c_schar>>, a: impl CastInto<Ref<AllocatorOfSchar>>, ) -> CppBox<VectorOfSchar>

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

Source

pub unsafe fn from_vector_of_schar_allocator_of_schar( x: impl CastInto<Ref<VectorOfSchar>>, a: impl CastInto<Ref<AllocatorOfSchar>>, ) -> CppBox<VectorOfSchar>

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

Source

pub unsafe fn from_2_schar_allocator_of_schar( first: impl CastInto<Ptr<c_schar>>, last: impl CastInto<Ptr<c_schar>>, alloc: impl CastInto<Ref<AllocatorOfSchar>>, ) -> CppBox<VectorOfSchar>

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

Source

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

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

Source

pub unsafe fn from_usize_schar( n: usize, value: impl CastInto<Ref<c_schar>>, ) -> CppBox<VectorOfSchar>

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

Source

pub unsafe fn from_2_schar( first: impl CastInto<Ptr<c_schar>>, last: impl CastInto<Ptr<c_schar>>, ) -> CppBox<VectorOfSchar>

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

Source

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

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

Source

pub unsafe fn pop_back(&mut self)

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn shrink_to_fit(&mut self)

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

Source

pub unsafe fn size(&self) -> usize

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

Source

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

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

Trait Implementations§

Source§

impl CppDeletable for VectorOfSchar

Source§

unsafe fn delete(&mut self)

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

Source§

impl Data for VectorOfSchar

Source§

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

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

Source§

type Output = Ptr<i8>

Source§

impl DataMut for VectorOfSchar

Source§

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

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

Source§

type Output = MutPtr<i8>

Source§

impl Ge<Ref<VectorOfSchar>> for VectorOfSchar

Source§

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

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

Source§

impl Gt<Ref<VectorOfSchar>> for VectorOfSchar

Source§

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

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

Source§

impl Le<Ref<VectorOfSchar>> for VectorOfSchar

Source§

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

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

Source§

impl Lt<Ref<VectorOfSchar>> for VectorOfSchar

Source§

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

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

Source§

impl PartialEq<Ref<VectorOfSchar>> for VectorOfSchar

Source§

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

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

Source§

unsafe fn size(&self) -> usize

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