[−][src]Struct cpp_std::VectorOfShort
C++ class: std::vector<short, std::allocator<short>>
.
Methods
impl VectorOfShort
[src]
pub unsafe fn assign_usize_short(
&mut self,
n: usize,
val: impl CastInto<Ref<c_short>>
)
[src]
&mut self,
n: usize,
val: impl CastInto<Ref<c_short>>
)
Calls C++ function: void std::vector<short, std::allocator<short>>::assign(size_t __n, const short& __val)
.
pub unsafe fn assign_2_short(
&mut self,
first: impl CastInto<Ptr<c_short>>,
last: impl CastInto<Ptr<c_short>>
)
[src]
&mut self,
first: impl CastInto<Ptr<c_short>>,
last: impl CastInto<Ptr<c_short>>
)
Calls C++ function: void std::vector<short, std::allocator<short>>::assign(const short* first, const short* last)
.
pub unsafe fn at_mut(&mut self, n: usize) -> MutRef<c_short>
[src]
Calls C++ function: short& std::vector<short, std::allocator<short>>::at(size_t __n)
.
pub unsafe fn at(&self, n: usize) -> Ref<c_short>
[src]
Calls C++ function: const short& std::vector<short, std::allocator<short>>::at(size_t __n) const
.
pub unsafe fn back_mut(&mut self) -> MutRef<c_short>
[src]
Calls C++ function: short& std::vector<short, std::allocator<short>>::back()
.
pub unsafe fn back(&self) -> Ref<c_short>
[src]
Calls C++ function: const short& std::vector<short, std::allocator<short>>::back() const
.
pub unsafe fn capacity(&self) -> usize
[src]
Calls C++ function: size_t std::vector<short, std::allocator<short>>::capacity() const
.
pub unsafe fn clear(&mut self)
[src]
Calls C++ function: void std::vector<short, std::allocator<short>>::clear()
.
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<VectorOfShort>>
) -> MutRef<VectorOfShort>
[src]
&mut self,
other: impl CastInto<Ref<VectorOfShort>>
) -> MutRef<VectorOfShort>
Calls C++ function: std::vector<short, std::allocator<short>>& std::vector<short, std::allocator<short>>::operator=(const std::vector<short, std::allocator<short>>& other)
.
pub unsafe fn data_mut(&mut self) -> MutPtr<c_short>
[src]
Calls C++ function: short* std::vector<short, std::allocator<short>>::data()
.
pub unsafe fn data(&self) -> Ptr<c_short>
[src]
Calls C++ function: const short* std::vector<short, std::allocator<short>>::data() const
.
pub unsafe fn empty(&self) -> bool
[src]
Calls C++ function: bool std::vector<short, std::allocator<short>>::empty() const
.
pub unsafe fn front_mut(&mut self) -> MutRef<c_short>
[src]
Calls C++ function: short& std::vector<short, std::allocator<short>>::front()
.
pub unsafe fn front(&self) -> Ref<c_short>
[src]
Calls C++ function: const short& std::vector<short, std::allocator<short>>::front() const
.
pub unsafe fn index_mut(&mut self, n: usize) -> MutRef<c_short>
[src]
Calls C++ function: short& std::vector<short, std::allocator<short>>::operator[](size_t __n)
.
pub unsafe fn index(&self, n: usize) -> Ref<c_short>
[src]
Calls C++ function: const short& std::vector<short, std::allocator<short>>::operator[](size_t __n) const
.
pub unsafe fn max_size(&self) -> usize
[src]
Calls C++ function: size_t std::vector<short, std::allocator<short>>::max_size() const
.
pub unsafe fn new() -> CppBox<VectorOfShort>
[src]
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector()
.
pub unsafe fn from_allocator_of_short(
a: impl CastInto<Ref<AllocatorOfShort>>
) -> CppBox<VectorOfShort>
[src]
a: impl CastInto<Ref<AllocatorOfShort>>
) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(const std::allocator<short>& __a)
.
pub unsafe fn from_usize_allocator_of_short(
n: usize,
a: impl CastInto<Ref<AllocatorOfShort>>
) -> CppBox<VectorOfShort>
[src]
n: usize,
a: impl CastInto<Ref<AllocatorOfShort>>
) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(size_t __n, const std::allocator<short>& __a = …)
.
pub unsafe fn from_usize_short_allocator_of_short(
n: usize,
value: impl CastInto<Ref<c_short>>,
a: impl CastInto<Ref<AllocatorOfShort>>
) -> CppBox<VectorOfShort>
[src]
n: usize,
value: impl CastInto<Ref<c_short>>,
a: impl CastInto<Ref<AllocatorOfShort>>
) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(size_t __n, const short& __value, const std::allocator<short>& __a = …)
.
pub unsafe fn from_vector_of_short_allocator_of_short(
x: impl CastInto<Ref<VectorOfShort>>,
a: impl CastInto<Ref<AllocatorOfShort>>
) -> CppBox<VectorOfShort>
[src]
x: impl CastInto<Ref<VectorOfShort>>,
a: impl CastInto<Ref<AllocatorOfShort>>
) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(const std::vector<short, std::allocator<short>>& __x, const std::allocator<short>& __a)
.
pub unsafe fn from_2_short_allocator_of_short(
first: impl CastInto<Ptr<c_short>>,
last: impl CastInto<Ptr<c_short>>,
alloc: impl CastInto<Ref<AllocatorOfShort>>
) -> CppBox<VectorOfShort>
[src]
first: impl CastInto<Ptr<c_short>>,
last: impl CastInto<Ptr<c_short>>,
alloc: impl CastInto<Ref<AllocatorOfShort>>
) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(const short* first, const short* last, std::allocator<short> alloc = …)
.
pub unsafe fn from_usize(n: usize) -> CppBox<VectorOfShort>
[src]
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(size_t __n)
.
pub unsafe fn from_usize_short(
n: usize,
value: impl CastInto<Ref<c_short>>
) -> CppBox<VectorOfShort>
[src]
n: usize,
value: impl CastInto<Ref<c_short>>
) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(size_t __n, const short& __value)
.
pub unsafe fn from_2_short(
first: impl CastInto<Ptr<c_short>>,
last: impl CastInto<Ptr<c_short>>
) -> CppBox<VectorOfShort>
[src]
first: impl CastInto<Ptr<c_short>>,
last: impl CastInto<Ptr<c_short>>
) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(const short* first, const short* last)
.
pub unsafe fn new_copy(
other: impl CastInto<Ref<VectorOfShort>>
) -> CppBox<VectorOfShort>
[src]
other: impl CastInto<Ref<VectorOfShort>>
) -> CppBox<VectorOfShort>
Calls C++ function: [constructor] void std::vector<short, std::allocator<short>>::vector(const std::vector<short, std::allocator<short>>& other)
.
pub unsafe fn pop_back(&mut self)
[src]
Calls C++ function: void std::vector<short, std::allocator<short>>::pop_back()
.
pub unsafe fn push_back(&mut self, x: impl CastInto<Ref<c_short>>)
[src]
Calls C++ function: void std::vector<short, std::allocator<short>>::push_back(const short& __x)
.
pub unsafe fn reserve(&mut self, n: usize)
[src]
Calls C++ function: void std::vector<short, std::allocator<short>>::reserve(size_t __n)
.
pub unsafe fn resize_1a(&mut self, new_size: usize)
[src]
Calls C++ function: void std::vector<short, std::allocator<short>>::resize(size_t __new_size)
.
pub unsafe fn resize_2a(
&mut self,
new_size: usize,
x: impl CastInto<Ref<c_short>>
)
[src]
&mut self,
new_size: usize,
x: impl CastInto<Ref<c_short>>
)
Calls C++ function: void std::vector<short, std::allocator<short>>::resize(size_t __new_size, const short& __x)
.
pub unsafe fn shrink_to_fit(&mut self)
[src]
Calls C++ function: void std::vector<short, std::allocator<short>>::shrink_to_fit()
.
pub unsafe fn size(&self) -> usize
[src]
Calls C++ function: size_t std::vector<short, std::allocator<short>>::size() const
.
pub unsafe fn swap(&mut self, x: impl CastInto<MutRef<VectorOfShort>>)
[src]
Calls C++ function: void std::vector<short, std::allocator<short>>::swap(std::vector<short, std::allocator<short>>& __x)
.
Trait Implementations
impl PartialEq<Ref<VectorOfShort>> for VectorOfShort
[src]
fn eq(&self, y: &Ref<VectorOfShort>) -> bool
[src]
Calls C++ function: bool std::operator==(const std::vector<short, std::allocator<short>>& __x, const std::vector<short, std::allocator<short>>& __y)
.
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Lt<Ref<VectorOfShort>> for VectorOfShort
[src]
unsafe fn lt(&self, y: &Ref<VectorOfShort>) -> bool
[src]
Calls C++ function: bool std::operator<(const std::vector<short, std::allocator<short>>& __x, const std::vector<short, std::allocator<short>>& __y)
.
impl Le<Ref<VectorOfShort>> for VectorOfShort
[src]
unsafe fn le(&self, y: &Ref<VectorOfShort>) -> bool
[src]
Calls C++ function: bool std::operator<=(const std::vector<short, std::allocator<short>>& __x, const std::vector<short, std::allocator<short>>& __y)
.
impl Gt<Ref<VectorOfShort>> for VectorOfShort
[src]
unsafe fn gt(&self, y: &Ref<VectorOfShort>) -> bool
[src]
Calls C++ function: bool std::operator>(const std::vector<short, std::allocator<short>>& __x, const std::vector<short, std::allocator<short>>& __y)
.
impl Ge<Ref<VectorOfShort>> for VectorOfShort
[src]
unsafe fn ge(&self, y: &Ref<VectorOfShort>) -> bool
[src]
Calls C++ function: bool std::operator>=(const std::vector<short, std::allocator<short>>& __x, const std::vector<short, std::allocator<short>>& __y)
.
impl CppDeletable for VectorOfShort
[src]
unsafe fn delete(&mut self)
[src]
Calls C++ function: [destructor] void std::vector<short, std::allocator<short>>::~vector()
.
impl Data for VectorOfShort
[src]
type Output = Ptr<c_short>
unsafe fn data(&self) -> Ptr<c_short>
[src]
Calls C++ function: const short* std::vector<short, std::allocator<short>>::data() const
.
impl DataMut for VectorOfShort
[src]
type Output = MutPtr<c_short>
unsafe fn data_mut(&mut self) -> MutPtr<c_short>
[src]
Calls C++ function: short* std::vector<short, std::allocator<short>>::data()
.
impl Size for VectorOfShort
[src]
Auto Trait Implementations
impl Send for VectorOfShort
impl Sync for VectorOfShort
impl Unpin for VectorOfShort
impl UnwindSafe for VectorOfShort
impl RefUnwindSafe for VectorOfShort
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<V, T> VectorAsSlice for V where
V: Data<Output = Ptr<T>> + Size,
[src]
V: Data<Output = Ptr<T>> + Size,
type Item = T
unsafe fn vector_as_slice(&self) -> &[T]
[src]
impl<V, T> VectorAsMutSlice for V where
V: DataMut<Output = MutPtr<T>> + Size,
[src]
V: DataMut<Output = MutPtr<T>> + Size,