#[repr(C)]pub struct _drvector_t {
pub entries: uint,
pub capacity: uint,
pub array: *mut *mut c_void,
pub synch: bool_,
pub lock: *mut c_void,
pub free_data_func: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
}Expand description
The storage for a vector.
Fields§
§entries: uint< The index at which drvector_append() will write.
capacity: uint< The size of \p array.
array: *mut *mut c_void< The dynamically allocated storage for the vector entries.
synch: bool_< Whether to automatically synchronize each operation.
lock: *mut c_void< The lock used for synchronization.
free_data_func: Option<unsafe extern "C" fn(arg1: *mut c_void)>< The routine called when freeing each entry.
Trait Implementations§
Source§impl Clone for _drvector_t
impl Clone for _drvector_t
Source§fn clone(&self) -> _drvector_t
fn clone(&self) -> _drvector_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for _drvector_t
impl Debug for _drvector_t
impl Copy for _drvector_t
Auto Trait Implementations§
impl Freeze for _drvector_t
impl RefUnwindSafe for _drvector_t
impl !Send for _drvector_t
impl !Sync for _drvector_t
impl Unpin for _drvector_t
impl UnsafeUnpin for _drvector_t
impl UnwindSafe for _drvector_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more