pub trait ClientActorSortedIndexApi<E> {
// Required methods
fn actor_sorted_index_insert(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: ([u8; 2], Vec<u8>),
buffer: Vec<u8>
) -> Result<(), E>;
fn actor_sorted_index_remove(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: &([u8; 2], Vec<u8>)
) -> Result<Option<Vec<u8>>, E>;
fn actor_sorted_index_scan(
&mut self,
object_handle: u32,
collection_index: u8,
count: u32
) -> Result<Vec<(([u8; 2], Vec<u8>), Vec<u8>)>, E>;
// Provided methods
fn actor_sorted_index_insert_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: ([u8; 2], Vec<u8>),
value: V
) -> Result<(), E>
where V: ScryptoEncode { ... }
fn actor_sorted_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: &([u8; 2], Vec<u8>)
) -> Result<Option<V>, E>
where V: ScryptoDecode { ... }
fn actor_sorted_index_scan_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
count: u32
) -> Result<Vec<(K, V)>, E>
where K: ScryptoDecode,
V: ScryptoDecode { ... }
}
Required Methods§
sourcefn actor_sorted_index_insert(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: ([u8; 2], Vec<u8>),
buffer: Vec<u8>
) -> Result<(), E>
fn actor_sorted_index_insert( &mut self, object_handle: u32, collection_index: u8, sorted_key: ([u8; 2], Vec<u8>), buffer: Vec<u8> ) -> Result<(), E>
Inserts an entry into a sorted index
Provided Methods§
sourcefn actor_sorted_index_insert_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: ([u8; 2], Vec<u8>),
value: V
) -> Result<(), E>where
V: ScryptoEncode,
fn actor_sorted_index_insert_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: ([u8; 2], Vec<u8>),
value: V
) -> Result<(), E>where
V: ScryptoEncode,
Inserts an entry into a sorted index
sourcefn actor_sorted_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: &([u8; 2], Vec<u8>)
) -> Result<Option<V>, E>where
V: ScryptoDecode,
fn actor_sorted_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: &([u8; 2], Vec<u8>)
) -> Result<Option<V>, E>where
V: ScryptoDecode,
Removes an entry from a sorted index
sourcefn actor_sorted_index_scan_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
count: u32
) -> Result<Vec<(K, V)>, E>where
K: ScryptoDecode,
V: ScryptoDecode,
fn actor_sorted_index_scan_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
count: u32
) -> Result<Vec<(K, V)>, E>where
K: ScryptoDecode,
V: ScryptoDecode,
Scans the first elements of count from a sorted index
Object Safety§
This trait is not object safe.