Struct wasmtime_environ::FilePos [−][src]
pub struct FilePos(_);
Expand description
A position within an original source file,
This structure is used as a newtype wrapper around a 32-bit integer which represents an offset within a file where a wasm instruction or function is to be originally found.
Implementations
Returns the offset that this offset was created with.
Note that the Default
implementation will return None
here, whereas
positions created with FilePos::new
will return Some
.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for FilePos
impl UnwindSafe for FilePos
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.