Struct clarity_repl::clarity::analysis::type_checker::contexts::ContractContext [−][src]
Fields
implemented_traits: HashSet<TraitIdentifier>
Implementations
impl ContractContext
[src]
pub fn new() -> ContractContext
[src]
pub fn check_name_used(&self, name: &str) -> CheckResult<()>
[src]
pub fn ft_exists(&self, name: &str) -> bool
[src]
pub fn get_nft_type(&self, name: &str) -> Option<&TypeSignature>
[src]
pub fn add_public_function_type(
&mut self,
name: ClarityName,
func_type: FunctionType
) -> CheckResult<()>
[src]
&mut self,
name: ClarityName,
func_type: FunctionType
) -> CheckResult<()>
pub fn add_read_only_function_type(
&mut self,
name: ClarityName,
func_type: FunctionType
) -> CheckResult<()>
[src]
&mut self,
name: ClarityName,
func_type: FunctionType
) -> CheckResult<()>
pub fn add_private_function_type(
&mut self,
name: ClarityName,
func_type: FunctionType
) -> CheckResult<()>
[src]
&mut self,
name: ClarityName,
func_type: FunctionType
) -> CheckResult<()>
pub fn add_map_type(
&mut self,
map_name: ClarityName,
map_type: (TypeSignature, TypeSignature)
) -> CheckResult<()>
[src]
&mut self,
map_name: ClarityName,
map_type: (TypeSignature, TypeSignature)
) -> CheckResult<()>
pub fn add_variable_type(
&mut self,
const_name: ClarityName,
var_type: TypeSignature
) -> CheckResult<()>
[src]
&mut self,
const_name: ClarityName,
var_type: TypeSignature
) -> CheckResult<()>
pub fn add_persisted_variable_type(
&mut self,
var_name: ClarityName,
var_type: TypeSignature
) -> CheckResult<()>
[src]
&mut self,
var_name: ClarityName,
var_type: TypeSignature
) -> CheckResult<()>
pub fn add_ft(&mut self, token_name: ClarityName) -> CheckResult<()>
[src]
pub fn add_nft(
&mut self,
token_name: ClarityName,
token_type: TypeSignature
) -> CheckResult<()>
[src]
&mut self,
token_name: ClarityName,
token_type: TypeSignature
) -> CheckResult<()>
pub fn add_trait(
&mut self,
trait_name: ClarityName,
trait_signature: BTreeMap<ClarityName, FunctionSignature>
) -> CheckResult<()>
[src]
&mut self,
trait_name: ClarityName,
trait_signature: BTreeMap<ClarityName, FunctionSignature>
) -> CheckResult<()>
pub fn add_implemented_trait(
&mut self,
trait_identifier: TraitIdentifier
) -> CheckResult<()>
[src]
&mut self,
trait_identifier: TraitIdentifier
) -> CheckResult<()>
pub fn get_trait(
&self,
trait_name: &str
) -> Option<&BTreeMap<ClarityName, FunctionSignature>>
[src]
&self,
trait_name: &str
) -> Option<&BTreeMap<ClarityName, FunctionSignature>>
pub fn get_map_type(
&self,
map_name: &str
) -> Option<&(TypeSignature, TypeSignature)>
[src]
&self,
map_name: &str
) -> Option<&(TypeSignature, TypeSignature)>
pub fn get_variable_type(&self, name: &str) -> Option<&TypeSignature>
[src]
pub fn get_persisted_variable_type(&self, name: &str) -> Option<&TypeSignature>
[src]
pub fn get_function_type(&self, name: &str) -> Option<&FunctionType>
[src]
pub fn into_contract_analysis(self, contract_analysis: &mut ContractAnalysis)
[src]
This function consumes the ContractContext, and puts the relevant information into the provided ContractAnalysis
Auto Trait Implementations
impl RefUnwindSafe for ContractContext
impl Send for ContractContext
impl Sync for ContractContext
impl Unpin for ContractContext
impl UnwindSafe for ContractContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,