pub struct TargetBlocks { /* private fields */ }Implementations§
Source§impl TargetBlocks
impl TargetBlocks
Sourcepub fn iter_blocks(&self) -> impl Iterator<Item = &ARc<BlockWrapper>>
pub fn iter_blocks(&self) -> impl Iterator<Item = &ARc<BlockWrapper>>
All blocks
pub fn iter(&self) -> impl Iterator<Item = (&Id, &ARc<BlockWrapper>)>
pub fn iter_ids(&self) -> impl Iterator<Item = &Id>
Sourcepub fn ids_with_opcodes(&self) -> impl Iterator<Item = (&Id, BlockKindUnit)>
pub fn ids_with_opcodes(&self) -> impl Iterator<Item = (&Id, BlockKindUnit)>
Iterator of Ids and opcode names
of valid and invalid blocks
pub fn get_specific_kind<T: WrappableKind>( &self, reference: &RefBlock<T>, ) -> Result<&T, BlockReferenceInvalid>
pub fn get_specific_with_wrapper<T: WrappableKind>( &self, reference: &RefBlock<T>, ) -> Result<(&T, &ARc<BlockWrapper>), BlockReferenceInvalid>
Trait Implementations§
Source§impl Debug for TargetBlocks
impl Debug for TargetBlocks
Source§impl PartialEq for TargetBlocks
impl PartialEq for TargetBlocks
impl StructuralPartialEq for TargetBlocks
Auto Trait Implementations§
impl !Send for TargetBlocks
impl !Sync for TargetBlocks
impl Freeze for TargetBlocks
impl RefUnwindSafe for TargetBlocks
impl Unpin for TargetBlocks
impl UnsafeUnpin for TargetBlocks
impl UnwindSafe for TargetBlocks
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> 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