Struct cranelift_wasm::wasmparser::Segment
source · pub struct Segment<'a> {
pub name: &'a str,
pub alignment: u32,
pub flags: SegmentFlags,
}
Expand description
Represents extra metadata about the data segments.
Fields§
§name: &'a str
The name for the segment.
alignment: u32
The required alignment of the segment, encoded as a power of 2.
flags: SegmentFlags
The flags for the segment.
Trait Implementations§
source§impl<'a> FromReader<'a> for Segment<'a>
impl<'a> FromReader<'a> for Segment<'a>
source§fn from_reader(
reader: &mut BinaryReader<'a>
) -> Result<Segment<'a>, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a> ) -> Result<Segment<'a>, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.impl<'a> Copy for Segment<'a>
Auto Trait Implementations§
impl<'a> Freeze for Segment<'a>
impl<'a> RefUnwindSafe for Segment<'a>
impl<'a> Send for Segment<'a>
impl<'a> Sync for Segment<'a>
impl<'a> Unpin for Segment<'a>
impl<'a> UnwindSafe for Segment<'a>
Blanket Implementations§
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