pub struct HostSliceMut<'a> { /* private fields */ }
Implementations
sourceimpl<'a> HostSliceMut<'a>
impl<'a> HostSliceMut<'a>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_ptr(&self) -> *const u8
pub fn as_mut_ptr(&mut self) -> *mut u8
pub fn copy_from_enclave(&mut self, encl_buf: &[u8]) -> OCallResult<()>
pub fn copy_to_enclave(&self, encl_buf: &mut [u8]) -> OCallResult<()>
pub fn get_range<I>(self, index: I) -> Option<HostSlice<'a>>where
I: SliceIndex<[u8], Output = [u8]>,
pub fn get_range_mut<I>(self, index: I) -> Option<HostSliceMut<'a>>where
I: SliceIndex<[u8], Output = [u8]>,
pub fn range<I>(self, index: I) -> HostSlice<'a>where
I: SliceIndex<[u8], Output = [u8]>,
pub fn range_mut<I>(self, index: I) -> HostSliceMut<'a>where
I: SliceIndex<[u8], Output = [u8]>,
sourceimpl<'a> HostSliceMut<'a>
impl<'a> HostSliceMut<'a>
pub unsafe fn from_raw_parts_mut(data: *mut u8, len: usize) -> OCallResult<Self>
Trait Implementations
sourceimpl<'a> Debug for HostSliceMut<'a>
impl<'a> Debug for HostSliceMut<'a>
sourceimpl<'a> From<HostSliceMut<'a>> for HostSlice<'a>
impl<'a> From<HostSliceMut<'a>> for HostSlice<'a>
sourcefn from(slice: HostSliceMut<'a>) -> HostSlice<'a>
fn from(slice: HostSliceMut<'a>) -> HostSlice<'a>
Converts to this type from the input type.
Auto Trait Implementations
impl<'a> RefUnwindSafe for HostSliceMut<'a>
impl<'a> Send for HostSliceMut<'a>
impl<'a> Sync for HostSliceMut<'a>
impl<'a> Unpin for HostSliceMut<'a>
impl<'a> !UnwindSafe for HostSliceMut<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more