pub struct ImplementationDescriptor { /* private fields */ }Expand description
Implementation-local registration data for one outward contract.
Construction happens at runtime from a contract owned by generated static storage, so cloning this value shares rather than duplicates that contract.
Implementations§
Source§impl ImplementationDescriptor
impl ImplementationDescriptor
Sourcepub fn new(
contract: &'static ContractDescriptor,
imports: impl IntoIterator<Item = ImportDescriptor>,
) -> Result<Self, ImplementationDescriptorError>
pub fn new( contract: &'static ContractDescriptor, imports: impl IntoIterator<Item = ImportDescriptor>, ) -> Result<Self, ImplementationDescriptorError>
Constructs implementation registration while preserving import order.
Sourcepub fn contract(&self) -> &'static ContractDescriptor
pub fn contract(&self) -> &'static ContractDescriptor
Returns the shared outward contract.
Sourcepub fn imports(&self) -> &[ImportDescriptor]
pub fn imports(&self) -> &[ImportDescriptor]
Returns implementation-private imports in their supplied order.
Trait Implementations§
Source§impl Clone for ImplementationDescriptor
impl Clone for ImplementationDescriptor
Source§fn clone(&self) -> ImplementationDescriptor
fn clone(&self) -> ImplementationDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImplementationDescriptor
impl Debug for ImplementationDescriptor
impl Eq for ImplementationDescriptor
Source§impl PartialEq for ImplementationDescriptor
impl PartialEq for ImplementationDescriptor
impl StructuralPartialEq for ImplementationDescriptor
Auto Trait Implementations§
impl Freeze for ImplementationDescriptor
impl RefUnwindSafe for ImplementationDescriptor
impl Send for ImplementationDescriptor
impl Sync for ImplementationDescriptor
impl Unpin for ImplementationDescriptor
impl UnsafeUnpin for ImplementationDescriptor
impl UnwindSafe for ImplementationDescriptor
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