[−][src]Enum wasmbin::sections::Section
Variants
Implementations
impl Section
[src]
pub fn kind(&self) -> Kind
[src]
pub fn try_as<T: Payload>(&self) -> Option<&Blob<T>>
[src]
pub fn try_as_mut<T: Payload>(&mut self) -> Option<&mut Blob<T>>
[src]
Trait Implementations
impl Arbitrary for Section
[src]
fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self>
[src]
fn arbitrary_take_rest(u: Unstructured<'_>) -> Result<Self>
[src]
fn size_hint(depth: usize) -> (usize, Option<usize>)
[src]
fn shrink(&self) -> Box<dyn Iterator<Item = Self>>
[src]
impl Clone for Section
[src]
impl Debug for Section
[src]
impl Decode for Section
[src]
fn decode(r: &mut impl Read) -> Result<Self, DecodeError>
[src]
impl DecodeWithDiscriminant for Section
[src]
const NAME: &'static str
[src]
type Discriminant = u8
fn maybe_decode_with_discriminant(
discriminant: u8,
r: &mut impl Read
) -> Result<Option<Self>, DecodeError>
[src]
discriminant: u8,
r: &mut impl Read
) -> Result<Option<Self>, DecodeError>
fn decode_with_discriminant(
discriminant: Self::Discriminant,
r: &mut impl Read
) -> Result<Self, DecodeError>
[src]
discriminant: Self::Discriminant,
r: &mut impl Read
) -> Result<Self, DecodeError>
fn decode_without_discriminant(r: &mut impl Read) -> Result<Self, DecodeError>
[src]
impl Encode for Section
[src]
impl Eq for Section
[src]
impl From<Blob<CustomSection>> for Section
[src]
impl From<Blob<FuncId>> for Section
[src]
impl From<Blob<Vec<Blob<FuncBody>>>> for Section
[src]
impl From<Blob<Vec<Data>>> for Section
[src]
impl From<Blob<Vec<Element>>> for Section
[src]
impl From<Blob<Vec<Export>>> for Section
[src]
impl From<Blob<Vec<FuncType>>> for Section
[src]
impl From<Blob<Vec<Global>>> for Section
[src]
impl From<Blob<Vec<Import>>> for Section
[src]
impl From<Blob<Vec<MemType>>> for Section
[src]
impl From<Blob<Vec<TableType>>> for Section
[src]
impl From<Blob<Vec<TypeId>>> for Section
[src]
impl From<CustomSection> for Section
[src]
impl From<FuncId> for Section
[src]
impl From<Vec<Blob<FuncBody>>> for Section
[src]
impl From<Vec<Data>> for Section
[src]
impl From<Vec<Element>> for Section
[src]
impl From<Vec<Export>> for Section
[src]
impl From<Vec<FuncType>> for Section
[src]
impl From<Vec<Global>> for Section
[src]
impl From<Vec<Import>> for Section
[src]
impl From<Vec<MemType>> for Section
[src]
impl From<Vec<TableType>> for Section
[src]
impl From<Vec<TypeId>> for Section
[src]
impl Hash for Section
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Section> for Section
[src]
impl StructuralEq for Section
[src]
impl StructuralPartialEq for Section
[src]
impl Visit for Section where
Self: 'static,
[src]
Self: 'static,
fn visit_children<'a, VisitT: 'static, VisitE, VisitF: FnMut(&'a VisitT) -> Result<(), VisitE>>(
&'a self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
[src]
&'a self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit_children_mut<VisitT: 'static, VisitE, VisitF: FnMut(&mut VisitT) -> Result<(), VisitE>>(
&mut self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
[src]
&mut self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit<'a, T: 'static, R: VisitResult, F: FnMut(&'a T) -> R>(
&'a self,
f: F
) -> Result<(), VisitError<R::Error>>
[src]
&'a self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit_mut<T: 'static, R: VisitResult, F: FnMut(&mut T) -> R>(
&mut self,
f: F
) -> Result<(), VisitError<R::Error>>
[src]
&mut self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit_child<'a, T: 'static, E, F: FnMut(&'a T) -> Result<(), E>>(
&'a self,
f: &mut F
) -> Result<(), VisitError<E>>
[src]
&'a self,
f: &mut F
) -> Result<(), VisitError<E>>
fn visit_child_mut<T: 'static, E, F: FnMut(&mut T) -> Result<(), E>>(
&mut self,
f: &mut F
) -> Result<(), VisitError<E>>
[src]
&mut self,
f: &mut F
) -> Result<(), VisitError<E>>
Auto Trait Implementations
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,