pub struct BufferStorage {
pub bytes: Vec<u8>,
pub detached: bool,
}Expand description
The bytes an ArrayBuffer owns, plus whether they have been detached.
transfer() moves the bytes to a new buffer and leaves this one empty and detached; a
view of a detached buffer reads undefined from every index.
Fields§
§bytes: Vec<u8>The bytes, in memory order.
detached: boolWhether transfer() has taken the bytes away.
Auto Trait Implementations§
impl Forget for BufferStorage
impl Freeze for BufferStorage
impl Move for BufferStorage
impl RefUnwindSafe for BufferStorage
impl Send for BufferStoragewhere
RawVecInner: Send,
impl Sync for BufferStoragewhere
RawVecInner: Sync,
impl Unpin for BufferStorage
impl UnsafeUnpin for BufferStorage
impl UnwindSafe for BufferStoragewhere
RawVecInner: 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