Struct cranelift_wasm::wasmparser::ProducersFieldValue
source · pub struct ProducersFieldValue<'a> {
pub name: &'a str,
pub version: &'a str,
}
Expand description
Represents a field value in the producers custom section.
Fields§
§name: &'a str
The field name.
version: &'a str
The field version.
Trait Implementations§
source§impl<'a> Clone for ProducersFieldValue<'a>
impl<'a> Clone for ProducersFieldValue<'a>
source§fn clone(&self) -> ProducersFieldValue<'a>
fn clone(&self) -> ProducersFieldValue<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ProducersFieldValue<'a>
impl<'a> Debug for ProducersFieldValue<'a>
source§impl<'a> FromReader<'a> for ProducersFieldValue<'a>
impl<'a> FromReader<'a> for ProducersFieldValue<'a>
source§fn from_reader(
reader: &mut BinaryReader<'a>
) -> Result<ProducersFieldValue<'a>, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a> ) -> Result<ProducersFieldValue<'a>, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.