pub struct BindingRegistry {
pub bindings: HashMap<String, BindingConfig>,
}
Fields§
§bindings: HashMap<String, BindingConfig>
Implementations§
Source§impl BindingRegistry
impl BindingRegistry
pub fn load(path: &Path) -> Result<Self>
pub fn get_binding(&self, key: &str) -> Option<&BindingConfig>
Sourcepub fn populate_from_manifest(&mut self, manifest: &Manifest)
pub fn populate_from_manifest(&mut self, manifest: &Manifest)
Populates the registry with bindings derived from Natspec comments in the manifest,
particularly @custom:binds-to
tags on concrete contracts.
Trait Implementations§
Source§impl Clone for BindingRegistry
impl Clone for BindingRegistry
Source§fn clone(&self) -> BindingRegistry
fn clone(&self) -> BindingRegistry
Returns a duplicate 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 Debug for BindingRegistry
impl Debug for BindingRegistry
Source§impl Default for BindingRegistry
impl Default for BindingRegistry
Source§fn default() -> BindingRegistry
fn default() -> BindingRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BindingRegistry
impl RefUnwindSafe for BindingRegistry
impl Send for BindingRegistry
impl Sync for BindingRegistry
impl Unpin for BindingRegistry
impl UnwindSafe for BindingRegistry
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