pub struct RawParts<M: MemBuilder>where
M::Mem: MemRawParts,{
pub mem_builder: M,
pub mem_handle: <M::Mem as MemRawParts>::Handle,
pub capacity: usize,
pub len: usize,
pub element_layout: Layout,
pub element_typeid: TypeId,
pub element_drop: Option<unsafe fn(ptr: *mut u8, len: usize)>,
pub element_clone: unsafe fn(src: *const u8, dst: *mut u8, len: usize),
}Expand description
AnyVec raw parts.
You can get it with AnyVec::into_raw_parts, or build/edit
it manually. And with AnyVec::from_raw_parts, you can construct
AnyVec.
Fields§
§mem_builder: M§mem_handle: <M::Mem as MemRawParts>::Handle§capacity: usize§len: usize§element_layout: Layout§element_typeid: TypeId§element_drop: Option<unsafe fn(ptr: *mut u8, len: usize)>§element_clone: unsafe fn(src: *const u8, dst: *mut u8, len: usize)Ignored if non Cloneable.
Trait Implementations§
Source§impl<M: MemBuilder> Clone for RawParts<M>
impl<M: MemBuilder> Clone for RawParts<M>
Auto Trait Implementations§
impl<M> Freeze for RawParts<M>
impl<M> RefUnwindSafe for RawParts<M>
impl<M> Send for RawParts<M>
impl<M> Sync for RawParts<M>
impl<M> Unpin for RawParts<M>
impl<M> UnsafeUnpin for RawParts<M>
impl<M> UnwindSafe for RawParts<M>
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