pub struct BytecodeMappedSlice<'a, Op> { /* private fields */ }Expand description
A slice into a BytecodeMapped instance.
Implementations§
Source§impl<'a, Op> BytecodeMappedSlice<'a, Op>
impl<'a, Op> BytecodeMappedSlice<'a, Op>
Sourcepub fn op_indices(self) -> &'a [usize]
pub fn op_indices(self) -> &'a [usize]
The slice of operation indices within the mapped bytecode.
Sourcepub fn ops(self) -> impl Iterator<Item = Op> + 'awhere
Op: TryFromBytes,
pub fn ops(self) -> impl Iterator<Item = Op> + 'awhere
Op: TryFromBytes,
An iterator yielding all mapped operations represented by this slice.
Trait Implementations§
Source§impl<'a, Op> Clone for BytecodeMappedSlice<'a, Op>where
Op: Clone,
impl<'a, Op> Clone for BytecodeMappedSlice<'a, Op>where
Op: Clone,
Source§fn clone(&self) -> BytecodeMappedSlice<'a, Op>
fn clone(&self) -> BytecodeMappedSlice<'a, Op>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, Op> Debug for BytecodeMappedSlice<'a, Op>where
Op: Debug,
impl<'a, Op> Debug for BytecodeMappedSlice<'a, Op>where
Op: Debug,
Source§impl<'a, Op> PartialEq for BytecodeMappedSlice<'a, Op>where
Op: PartialEq,
impl<'a, Op> PartialEq for BytecodeMappedSlice<'a, Op>where
Op: PartialEq,
impl<'a, Op> Copy for BytecodeMappedSlice<'a, Op>where
Op: Copy,
impl<'a, Op> StructuralPartialEq for BytecodeMappedSlice<'a, Op>
Auto Trait Implementations§
impl<'a, Op> Freeze for BytecodeMappedSlice<'a, Op>
impl<'a, Op> RefUnwindSafe for BytecodeMappedSlice<'a, Op>where
Op: RefUnwindSafe,
impl<'a, Op> Send for BytecodeMappedSlice<'a, Op>where
Op: Send,
impl<'a, Op> Sync for BytecodeMappedSlice<'a, Op>where
Op: Sync,
impl<'a, Op> Unpin for BytecodeMappedSlice<'a, Op>where
Op: Unpin,
impl<'a, Op> UnwindSafe for BytecodeMappedSlice<'a, Op>where
Op: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more