Struct crossbeam_epoch::atomic::Array
source · #[repr(C)]struct Array<T> {
len: usize,
elements: [MaybeUninit<T>; 0],
}
Expand description
Array with size.
§Memory layout
An array consisting of size and elements:
elements
|
|
------------------------------------
| size | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
------------------------------------
Its memory layout is different from that of Box<[T]>
in that size is in the allocation (not
along with pointer as in Box<[T]>
).
Elements are not present in the type, but they will be in the allocation.
Fields§
§len: usize
The number of elements (not the number of bytes).
elements: [MaybeUninit<T>; 0]
Implementations§
Auto Trait Implementations§
impl<T> Freeze for Array<T>where
T: Freeze,
impl<T> RefUnwindSafe for Array<T>where
T: RefUnwindSafe,
impl<T> Send for Array<T>where
T: Send,
impl<T> Sync for Array<T>where
T: Sync,
impl<T> Unpin for Array<T>where
T: Unpin,
impl<T> UnwindSafe for Array<T>where
T: UnwindSafe,
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