pub struct WriteOpRef<'a> {
pub file: &'a VfFile,
pub offset: VfOffset,
pub data: &'a [u8],
pub creation: bool,
pub truncate: bool,
}Expand description
Borrowed write request for callers that should not have to allocate an
owned Vec<u8> merely to submit a vector operation.
Fields§
§file: &'a VfFile§offset: VfOffset§data: &'a [u8]§creation: bool§truncate: boolImplementations§
Source§impl<'a> WriteOpRef<'a>
impl<'a> WriteOpRef<'a>
Trait Implementations§
Source§impl<'a> Clone for WriteOpRef<'a>
impl<'a> Clone for WriteOpRef<'a>
Source§fn clone(&self) -> WriteOpRef<'a>
fn clone(&self) -> WriteOpRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for WriteOpRef<'a>
Source§impl<'a> Debug for WriteOpRef<'a>
impl<'a> Debug for WriteOpRef<'a>
Source§impl<'a> From<&'a WriteOp> for WriteOpRef<'a>
impl<'a> From<&'a WriteOp> for WriteOpRef<'a>
Source§fn from(write: &'a WriteOp) -> WriteOpRef<'a>
fn from(write: &'a WriteOp) -> WriteOpRef<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for WriteOpRef<'a>
impl<'a> RefUnwindSafe for WriteOpRef<'a>
impl<'a> Send for WriteOpRef<'a>
impl<'a> Sync for WriteOpRef<'a>
impl<'a> Unpin for WriteOpRef<'a>
impl<'a> UnsafeUnpin for WriteOpRef<'a>
impl<'a> UnwindSafe for WriteOpRef<'a>
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