[][src]Struct wiggle_runtime::GuestBorrows

pub struct GuestBorrows { /* fields omitted */ }

Methods

impl GuestBorrows[src]

pub fn new() -> Self[src]

pub fn borrow_pointee<'a, T>(
    &mut self,
    p: &GuestPtr<'a, T>
) -> Result<(), GuestError> where
    T: GuestType<'a>, 
[src]

Borrow the region of memory pointed to by a GuestPtr. This is required for safety if you are dereferencing GuestPtrs while holding a reference to a slice via GuestPtr::as_raw.

pub fn borrow_slice<'a, T>(
    &mut self,
    p: &GuestPtr<'a, [T]>
) -> Result<(), GuestError> where
    T: GuestType<'a>, 
[src]

Borrow the slice of memory pointed to by a GuestPtr<[T]>. This is required for safety if you are dereferencing the GuestPtrs while holding a reference to another slice via GuestPtr::as_raw. Not required if using GuestPtr::as_raw on this pointer.

pub fn borrow_str(&mut self, p: &GuestPtr<str>) -> Result<(), GuestError>[src]

Borrow the slice of memory pointed to by a GuestPtr<str>. This is required for safety if you are dereferencing the GuestPtrs while holding a reference to another slice via GuestPtr::as_raw. Not required if using GuestPtr::as_raw on this pointer.

Trait Implementations

impl Debug for GuestBorrows[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointee for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.