[−][src]Struct bve_native::CVector
C safe wrapper for a Vec
.
Safety
- Modifying the contents in the array is valid.
- Increasing
count
such thatcount <= capacity
is valid. - Do not manually delete/realloc the pointer. Must use the deleter for the container where this vector was found.
Fields
ptr: *mut T
Ptr to the array of elements
count: size_t
Count of elements, do not run beyond this amount
capacity: size_t
Capacity of the underlying buffer
Trait Implementations
impl<T, U> From<Vec<U>> for CVector<T> where
U: Into<T>,
[src]
U: Into<T>,
impl<T, U> Into<Vec<U>> for CVector<T> where
T: Into<U>,
[src]
T: Into<U>,
Auto Trait Implementations
impl<T> RefUnwindSafe for CVector<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Send for CVector<T>
impl<T> !Sync for CVector<T>
impl<T> Unpin for CVector<T>
impl<T> UnwindSafe for CVector<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,