#[repr(C)]pub struct ngx_array_t {
pub elts: *mut c_void,
pub nelts: usize,
pub size: usize,
pub nalloc: usize,
pub pool: *mut ngx_pool_s,
}
Fields§
§elts: *mut c_void
§nelts: usize
§size: usize
§nalloc: usize
§pool: *mut ngx_pool_s
Implementations§
Source§impl ngx_array_t
impl ngx_array_t
Sourcepub unsafe fn as_slice<T>(&self) -> &[T]
pub unsafe fn as_slice<T>(&self) -> &[T]
Returns the contents of this array as a slice of T
.
§Safety
The array must be a valid, initialized array containing elements of type T or compatible in
layout with T (e.g. #[repr(transparent)]
wrappers).
Sourcepub unsafe fn as_slice_mut<T>(&mut self) -> &mut [T]
pub unsafe fn as_slice_mut<T>(&mut self) -> &mut [T]
Returns the contents of this array as a mutable slice of T
.
§Safety
The array must be a valid, initialized array containing elements of type T or compatible in
layout with T (e.g. #[repr(transparent)]
wrappers).
Trait Implementations§
Source§impl Clone for ngx_array_t
impl Clone for ngx_array_t
Source§fn clone(&self) -> ngx_array_t
fn clone(&self) -> ngx_array_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 ngx_array_t
impl Debug for ngx_array_t
impl Copy for ngx_array_t
Auto Trait Implementations§
impl Freeze for ngx_array_t
impl RefUnwindSafe for ngx_array_t
impl !Send for ngx_array_t
impl !Sync for ngx_array_t
impl Unpin for ngx_array_t
impl UnwindSafe for ngx_array_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