pub struct WasmBinaryHeader { /* private fields */ }Expand description
Minimal WebAssembly binary header metadata.
Implementations§
Source§impl WasmBinaryHeader
impl WasmBinaryHeader
Sourcepub const fn is_version_1(self) -> bool
pub const fn is_version_1(self) -> bool
Returns ‘true’ for WebAssembly version 1.
Sourcepub const fn format(self) -> WasmBinaryFormat
pub const fn format(self) -> WasmBinaryFormat
Returns the binary format marker for this header.
Trait Implementations§
Source§impl Clone for WasmBinaryHeader
impl Clone for WasmBinaryHeader
Source§fn clone(&self) -> WasmBinaryHeader
fn clone(&self) -> WasmBinaryHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WasmBinaryHeader
impl Debug for WasmBinaryHeader
Source§impl Hash for WasmBinaryHeader
impl Hash for WasmBinaryHeader
Source§impl Ord for WasmBinaryHeader
impl Ord for WasmBinaryHeader
Source§fn cmp(&self, other: &WasmBinaryHeader) -> Ordering
fn cmp(&self, other: &WasmBinaryHeader) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WasmBinaryHeader
impl PartialEq for WasmBinaryHeader
Source§fn eq(&self, other: &WasmBinaryHeader) -> bool
fn eq(&self, other: &WasmBinaryHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WasmBinaryHeader
impl PartialOrd for WasmBinaryHeader
impl Copy for WasmBinaryHeader
impl Eq for WasmBinaryHeader
impl StructuralPartialEq for WasmBinaryHeader
Auto Trait Implementations§
impl Freeze for WasmBinaryHeader
impl RefUnwindSafe for WasmBinaryHeader
impl Send for WasmBinaryHeader
impl Sync for WasmBinaryHeader
impl Unpin for WasmBinaryHeader
impl UnsafeUnpin for WasmBinaryHeader
impl UnwindSafe for WasmBinaryHeader
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