pub struct OwnedBufRawParts {
pub ptr: NonNull<u8>,
pub cap: usize,
pub init: usize,
}Expand description
The raw parts of an OwnedBuf.
Fields§
§ptr: NonNull<u8>Base pointer of the buffer.
cap: usizeThe capacity of the buffer. This many bytes starting with ptr and going upward are owned
by an OwnedBuf that returns this from .as_raw_parts().
init: usizeThe initialization cursor of the buffer. This many bytes starting with ptr and going
upward are safe to read (known not to contain traces of previous memory allocations and
internal allocator data structures). Must not exceed the capacity.
Trait Implementations§
Source§impl Clone for OwnedBufRawParts
impl Clone for OwnedBufRawParts
Source§fn clone(&self) -> OwnedBufRawParts
fn clone(&self) -> OwnedBufRawParts
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 OwnedBufRawParts
impl Debug for OwnedBufRawParts
impl Copy for OwnedBufRawParts
impl Send for OwnedBufRawParts
impl Sync for OwnedBufRawParts
Auto Trait Implementations§
impl Freeze for OwnedBufRawParts
impl RefUnwindSafe for OwnedBufRawParts
impl Unpin for OwnedBufRawParts
impl UnwindSafe for OwnedBufRawParts
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