multiversx_sc/api/uncallable/
static_var_api_uncallable.rs

1use crate::{
2    api::{RawHandle, StaticVarApi, StaticVarApiFlags, StaticVarApiImpl},
3    types::LockableStaticBuffer,
4};
5
6use super::UncallableApi;
7
8impl StaticVarApi for UncallableApi {
9    type StaticVarApiImpl = UncallableApi;
10
11    fn static_var_api_impl() -> Self::StaticVarApiImpl {
12        unreachable!()
13    }
14}
15
16impl StaticVarApiImpl for UncallableApi {
17    fn with_lockable_static_buffer<R, F: FnOnce(&mut LockableStaticBuffer) -> R>(
18        &self,
19        _f: F,
20    ) -> R {
21        unreachable!()
22    }
23
24    fn set_external_view_target_address_handle(&self, _handle: RawHandle) {
25        unreachable!()
26    }
27
28    fn get_external_view_target_address_handle(&self) -> RawHandle {
29        unreachable!()
30    }
31
32    fn next_handle(&self) -> RawHandle {
33        unreachable!()
34    }
35
36    fn set_num_arguments(&self, _num_arguments: i32) {
37        unreachable!()
38    }
39
40    fn get_num_arguments(&self) -> i32 {
41        unreachable!()
42    }
43
44    fn set_flags(&self, _flags: StaticVarApiFlags) {
45        unreachable!()
46    }
47
48    fn get_flags(&self) -> StaticVarApiFlags {
49        unreachable!()
50    }
51
52    fn is_scaling_factor_cached(&self, _decimals: usize) -> bool {
53        unreachable!()
54    }
55
56    fn set_scaling_factor_cached(&self, _decimals: usize) {
57        unreachable!()
58    }
59}