pub struct CheckedConsignment<'consignment, C: ConsignmentApi>(/* private fields */);
Implementations§
Source§impl<'consignment, C: ConsignmentApi> CheckedConsignment<'consignment, C>
impl<'consignment, C: ConsignmentApi> CheckedConsignment<'consignment, C>
pub fn new(consignment: &'consignment C) -> Self
Trait Implementations§
Source§impl<C: ConsignmentApi> ConsignmentApi for CheckedConsignment<'_, C>
impl<C: ConsignmentApi> ConsignmentApi for CheckedConsignment<'_, C>
Source§fn types(&self) -> &TypeSystem
fn types(&self) -> &TypeSystem
Returns reference to the type system.
Source§fn scripts(&self) -> &Scripts
fn scripts(&self) -> &Scripts
Returns reference to a collection of AluVM libraries used for the
validation.
Source§fn operation(&self, opid: OpId) -> Option<OpRef<'_>>
fn operation(&self, opid: OpId) -> Option<OpRef<'_>>
Retrieves reference to an operation (genesis or state transition) matching the provided id,
or
None
otherwiseSource§fn bundles<'iter>(&self) -> impl Iterator<Item = TransitionBundle> + 'iter
fn bundles<'iter>(&self) -> impl Iterator<Item = TransitionBundle> + 'iter
Returns iterator over all bundles present in the consignment.
Source§fn bundle_ids<'iter>(&self) -> impl Iterator<Item = BundleId> + 'iter
fn bundle_ids<'iter>(&self) -> impl Iterator<Item = BundleId> + 'iter
Returns iterator over all bundle ids present in the consignment.
Source§fn bundle(&self, bundle_id: BundleId) -> Option<&TransitionBundle>
fn bundle(&self, bundle_id: BundleId) -> Option<&TransitionBundle>
Returns reference to a bundle given a bundle id.
Auto Trait Implementations§
impl<'consignment, C> Freeze for CheckedConsignment<'consignment, C>
impl<'consignment, C> RefUnwindSafe for CheckedConsignment<'consignment, C>where
C: RefUnwindSafe,
impl<'consignment, C> Send for CheckedConsignment<'consignment, C>where
C: Sync,
impl<'consignment, C> Sync for CheckedConsignment<'consignment, C>where
C: Sync,
impl<'consignment, C> Unpin for CheckedConsignment<'consignment, C>
impl<'consignment, C> UnwindSafe for CheckedConsignment<'consignment, C>where
C: RefUnwindSafe,
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