[−][src]Struct wasmbin::builtins::Blob
Implementations
impl<T: Decode> Blob<T>
[src]
pub fn try_contents(&self) -> Result<&T, DecodeError>
[src]
pub fn try_contents_mut(&mut self) -> Result<&mut T, DecodeError>
[src]
pub fn try_into_contents(self) -> Result<T, DecodeError>
[src]
Trait Implementations
impl<T: Decode> Arbitrary for Blob<T> where
Lazy<T>: Arbitrary,
T: Arbitrary,
[src]
Lazy<T>: Arbitrary,
T: Arbitrary,
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<T: Clone + Decode> Clone for Blob<T>
[src]
impl<T: Decode + Debug> Debug for Blob<T>
[src]
impl<T: Decode> Decode for Blob<T>
[src]
fn decode(r: &mut impl Read) -> Result<Self, DecodeError>
[src]
impl<T: Default + Decode> Default for Blob<T>
[src]
impl<T: Decode + Encode> Encode for Blob<T>
[src]
impl<T: Eq + Decode> Eq for Blob<T>
[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<T: Decode> From<T> for Blob<T>
[src]
impl<T: Hash + Decode> Hash for Blob<T>
[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<T: PartialEq + Decode> PartialEq<Blob<T>> for Blob<T>
[src]
impl<T: Decode> StructuralEq for Blob<T>
[src]
impl<T: Decode> StructuralPartialEq for Blob<T>
[src]
impl<T: Decode> Visit for Blob<T> where
Self: 'static,
Lazy<T>: Visit,
T: Visit,
[src]
Self: 'static,
Lazy<T>: Visit,
T: Visit,
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>>
impl<T: Decode + WasmbinCountable> WasmbinCountable for Blob<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Blob<T> where
T: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
impl<T> Send for Blob<T> where
T: Send,
T: Send,
impl<T> Sync for Blob<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Unpin for Blob<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Blob<T> where
T: UnwindSafe,
T: UnwindSafe,
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<!> for 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>,