#[repr(C)]pub struct switch_array_header_t {
pub pool: *mut switch_memory_pool_t,
pub elt_size: c_int,
pub nelts: c_int,
pub nalloc: c_int,
pub elts: *mut c_char,
}Fields§
§pool: *mut switch_memory_pool_tThe pool the array is allocated out of
elt_size: c_intThe amount of memory allocated for each element of the array
nelts: c_intThe number of active elements in the array
nalloc: c_intThe number of elements allocated in the array
elts: *mut c_charThe elements in the array
Trait Implementations§
Source§impl Clone for switch_array_header_t
impl Clone for switch_array_header_t
Source§fn clone(&self) -> switch_array_header_t
fn clone(&self) -> switch_array_header_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 switch_array_header_t
impl Debug for switch_array_header_t
Source§impl Default for switch_array_header_t
impl Default for switch_array_header_t
impl Copy for switch_array_header_t
Auto Trait Implementations§
impl Freeze for switch_array_header_t
impl RefUnwindSafe for switch_array_header_t
impl !Send for switch_array_header_t
impl !Sync for switch_array_header_t
impl Unpin for switch_array_header_t
impl UnsafeUnpin for switch_array_header_t
impl UnwindSafe for switch_array_header_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