[][src]Struct wasmer_compiler::SectionBody

pub struct SectionBody(_);

The bytes in the section.

Implementations

impl SectionBody[src]

pub fn new_with_vec(contents: Vec<u8>) -> Self[src]

Create a new section body with the given contents.

pub fn as_ptr(&self) -> *const u8[src]

Returns a raw pointer to the section's buffer.

pub fn len(&self) -> usize[src]

Returns the length of this section in bytes.

pub fn as_slice(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Dereferences into the section's buffer.

pub fn is_empty(&self) -> bool[src]

Returns whether or not the section body is empty.

Trait Implementations

impl Clone for SectionBody[src]

impl Debug for SectionBody[src]

impl Default for SectionBody[src]

impl<'de> Deserialize<'de> for SectionBody[src]

impl Eq for SectionBody[src]

impl PartialEq<SectionBody> for SectionBody[src]

impl Serialize for SectionBody[src]

impl StructuralEq for SectionBody[src]

impl StructuralPartialEq for SectionBody[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.