[][src]Struct wasmer_runtime_core_fl::codegen::WasmSpan

pub struct WasmSpan { /* fields omitted */ }

Type representing an area of Wasm code in bytes as an offset from the beginning of the code section.

start must be less than or equal to end.

Implementations

impl WasmSpan[src]

pub fn new(start: u32, end: u32) -> Self[src]

Create a new WasmSpan.

start must be less than or equal to end.

pub const fn start(&self) -> u32[src]

Start offset in bytes from the beginning of the Wasm code section

pub const fn end(&self) -> u32[src]

End offset in bytes from the beginning of the Wasm code section

pub const fn size(&self) -> u32[src]

Size in bytes of the span

Trait Implementations

impl Clone for WasmSpan[src]

impl Copy for WasmSpan[src]

impl Debug for WasmSpan[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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.