Struct clarity_repl::clarity::analysis::analysis_db::AnalysisDatabase
source · [−]pub struct AnalysisDatabase<'a> { /* private fields */ }
Implementations
sourceimpl<'a> AnalysisDatabase<'a>
impl<'a> AnalysisDatabase<'a>
pub fn new(store: &'a mut dyn ClarityBackingStore) -> AnalysisDatabase<'a>
pub fn new_with_rollback_wrapper(
store: RollbackWrapper<'a>
) -> AnalysisDatabase<'a>
pub fn execute<F, T, E>(&mut self, f: F) -> Result<T, E> where
F: FnOnce(&mut Self) -> Result<T, E>,
pub fn begin(&mut self)
pub fn commit(&mut self)
pub fn roll_back(&mut self)
pub fn storage_key() -> &'static str
pub fn has_contract(
&mut self,
contract_identifier: &QualifiedContractIdentifier
) -> bool
pub fn load_contract(
&mut self,
contract_identifier: &QualifiedContractIdentifier
) -> Option<ContractAnalysis>
pub fn insert_contract(
&mut self,
contract_identifier: &QualifiedContractIdentifier,
contract: &ContractAnalysis
) -> CheckResult<()>
pub fn get_public_function_type(
&mut self,
contract_identifier: &QualifiedContractIdentifier,
function_name: &str
) -> CheckResult<Option<FunctionType>>
pub fn get_read_only_function_type(
&mut self,
contract_identifier: &QualifiedContractIdentifier,
function_name: &str
) -> CheckResult<Option<FunctionType>>
pub fn get_defined_trait(
&mut self,
contract_identifier: &QualifiedContractIdentifier,
trait_name: &str
) -> CheckResult<Option<BTreeMap<ClarityName, FunctionSignature>>>
pub fn get_implemented_traits(
&mut self,
contract_identifier: &QualifiedContractIdentifier
) -> CheckResult<BTreeSet<TraitIdentifier>>
pub fn get_map_type(
&mut self,
contract_identifier: &QualifiedContractIdentifier,
map_name: &str
) -> CheckResult<(TypeSignature, TypeSignature)>
pub fn destroy(self) -> RollbackWrapper<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for AnalysisDatabase<'a>
impl<'a> !Send for AnalysisDatabase<'a>
impl<'a> !Sync for AnalysisDatabase<'a>
impl<'a> Unpin for AnalysisDatabase<'a>
impl<'a> !UnwindSafe for AnalysisDatabase<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more