pub struct ContractMap { /* private fields */ }Implementations§
Source§impl ContractMap
impl ContractMap
pub fn new() -> Self
pub fn get_contract( &self, contract_identifier: &[u8], ) -> Option<ContractContainerRef>
pub fn register_contract( &mut self, contract_bytes: Vec<u8>, contract_container: ContractContainer, )
pub fn contains_contract(&self, contract_bytes: &[u8]) -> bool
Trait Implementations§
Source§impl Debug for ContractMap
impl Debug for ContractMap
Auto Trait Implementations§
impl Freeze for ContractMap
impl !RefUnwindSafe for ContractMap
impl Send for ContractMap
impl Sync for ContractMap
impl Unpin for ContractMap
impl UnsafeUnpin for ContractMap
impl !UnwindSafe for ContractMap
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> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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