[−][src]Struct wiggle_runtime::GuestBorrows
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]
&mut self,
p: &GuestPtr<'a, T>
) -> Result<(), GuestError> where
T: GuestType<'a>,
Borrow the region of memory pointed to by a GuestPtr
. This is required for safety if
you are dereferencing GuestPtr
s 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]
&mut self,
p: &GuestPtr<'a, [T]>
) -> Result<(), GuestError> where
T: GuestType<'a>,
Borrow the slice of memory pointed to by a GuestPtr<[T]>
. This is required for safety if
you are dereferencing the GuestPtr
s 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 GuestPtr
s while holding a reference to another slice via
GuestPtr::as_raw
. Not required if using GuestPtr::as_raw
on this pointer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GuestBorrows
impl Send for GuestBorrows
impl Sync for GuestBorrows
impl Unpin for GuestBorrows
impl UnwindSafe for GuestBorrows
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointee for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,