Skip to main content

calimero_sys/types/pointer/
host.rs

1use super::{Pointer, PtrSizedInt};
2
3impl<T> Pointer<T> {
4    #[inline]
5    pub fn new(_ptr: *const T) -> Self {
6        unimplemented!("Pointer construction is only permitted in wasm32")
7    }
8
9    #[inline]
10    pub fn as_ptr(&self) -> *const T {
11        unimplemented!("Pointer construction is only permitted in wasm32")
12    }
13
14    #[inline]
15    pub fn as_mut_ptr(&self) -> *mut T {
16        unimplemented!("Pointer construction is only permitted in wasm32")
17    }
18
19    #[inline]
20    pub const fn value(&self) -> PtrSizedInt {
21        self.value
22    }
23}