Struct extism_pdk::Raw
source · pub struct Raw<'a, T>(pub &'a T)
where
T: Pod;
Expand description
Raw does no conversion, it just copies the memory directly. Note: This will only work for types that implement bytemuck::Pod
Tuple Fields§
§0: &'a T
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Raw<'a, T>
impl<'a, T> RefUnwindSafe for Raw<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Raw<'a, T>where
T: Sync,
impl<'a, T> Sync for Raw<'a, T>where
T: Sync,
impl<'a, T> Unpin for Raw<'a, T>
impl<'a, T> UnwindSafe for Raw<'a, T>where
T: RefUnwindSafe,
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