Struct oasis_contract_sdk::memory::HostRegionRef
source · pub struct HostRegionRef<'a> {
pub offset: u32,
pub length: u32,
/* private fields */
}
Expand description
Reference to a host region.
Fields§
§offset: u32
§length: u32
Implementations§
source§impl<'a> HostRegionRef<'a>
impl<'a> HostRegionRef<'a>
sourcepub fn from_slice(data: &'a [u8]) -> Self
pub fn from_slice(data: &'a [u8]) -> Self
Creates a new host region from the given byte slice.
Auto Trait Implementations§
impl<'a> Freeze for HostRegionRef<'a>
impl<'a> RefUnwindSafe for HostRegionRef<'a>
impl<'a> Send for HostRegionRef<'a>
impl<'a> Sync for HostRegionRef<'a>
impl<'a> Unpin for HostRegionRef<'a>
impl<'a> UnwindSafe for HostRegionRef<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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