Struct wasmer_compiler::MiddlewareReaderState
source · pub struct MiddlewareReaderState<'a> {
inner: BinaryReader<'a>,
pending_operations: VecDeque<Operator<'a>>,
}
Expand description
The state of the binary reader. Exposed to middlewares to push their outputs.
Fields§
§inner: BinaryReader<'a>
Raw binary reader.
pending_operations: VecDeque<Operator<'a>>
The pending operations added by the middleware.
Implementations§
source§impl<'a> MiddlewareReaderState<'a>
impl<'a> MiddlewareReaderState<'a>
sourcepub fn push_operator(&mut self, operator: Operator<'a>)
pub fn push_operator(&mut self, operator: Operator<'a>)
Push an operator.
Trait Implementations§
source§impl<'a> Debug for MiddlewareReaderState<'a>
impl<'a> Debug for MiddlewareReaderState<'a>
source§impl<'a: 'b, 'b> Extend<&'b Operator<'a>> for MiddlewareReaderState<'a>
impl<'a: 'b, 'b> Extend<&'b Operator<'a>> for MiddlewareReaderState<'a>
source§fn extend<I: IntoIterator<Item = &'b Operator<'a>>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = &'b Operator<'a>>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<'a> Extend<Operator<'a>> for MiddlewareReaderState<'a>
impl<'a> Extend<Operator<'a>> for MiddlewareReaderState<'a>
source§fn extend<I: IntoIterator<Item = Operator<'a>>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = Operator<'a>>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations§
impl<'a> Freeze for MiddlewareReaderState<'a>
impl<'a> RefUnwindSafe for MiddlewareReaderState<'a>
impl<'a> Send for MiddlewareReaderState<'a>
impl<'a> Sync for MiddlewareReaderState<'a>
impl<'a> Unpin for MiddlewareReaderState<'a>
impl<'a> UnwindSafe for MiddlewareReaderState<'a>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T> Pointee for T
impl<T> Pointee for T
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref