Skip to main content

BTreeValueRemoveFromMapHelper

Trait BTreeValueRemoveFromMapHelper 

Source
pub trait BTreeValueRemoveFromMapHelper {
Show 28 methods // Required methods fn remove_optional_string( &mut self, key: &str, ) -> Result<Option<String>, Error>; fn remove_string(&mut self, key: &str) -> Result<String, Error>; fn remove_optional_float(&mut self, key: &str) -> Result<Option<f64>, Error>; fn remove_float(&mut self, key: &str) -> Result<f64, Error>; fn remove_optional_integer<T>( &mut self, key: &str, ) -> Result<Option<T>, Error> where T: TryFrom<i128> + TryFrom<u128> + TryFrom<u64> + TryFrom<i64> + TryFrom<u32> + TryFrom<i32> + TryFrom<u16> + TryFrom<i16> + TryFrom<u8> + TryFrom<i8>; fn remove_integer<T>(&mut self, key: &str) -> Result<T, Error> where T: TryFrom<i128> + TryFrom<u128> + TryFrom<u64> + TryFrom<i64> + TryFrom<u32> + TryFrom<i32> + TryFrom<u16> + TryFrom<i16> + TryFrom<u8> + TryFrom<i8>; fn remove_optional_hash256_bytes( &mut self, key: &str, ) -> Result<Option<[u8; 32]>, Error>; fn remove_hash256_bytes(&mut self, key: &str) -> Result<[u8; 32], Error>; fn remove_optional_bytes( &mut self, key: &str, ) -> Result<Option<Vec<u8>>, Error>; fn remove_bytes(&mut self, key: &str) -> Result<Vec<u8>, Error>; fn remove_optional_bool(&mut self, key: &str) -> Result<Option<bool>, Error>; fn remove_bool(&mut self, key: &str) -> Result<bool, Error>; fn remove_optional_identifier( &mut self, key: &str, ) -> Result<Option<Identifier>, Error>; fn remove_identifier(&mut self, key: &str) -> Result<Identifier, Error>; fn remove_binary_data(&mut self, key: &str) -> Result<BinaryData, Error>; fn remove_optional_binary_data( &mut self, key: &str, ) -> Result<Option<BinaryData>, Error>; fn remove_optional_bytes_32( &mut self, key: &str, ) -> Result<Option<Bytes32>, Error>; fn remove_bytes_32(&mut self, key: &str) -> Result<Bytes32, Error>; fn remove_optional_bytes_20( &mut self, key: &str, ) -> Result<Option<Bytes20>, Error>; fn remove_bytes_20(&mut self, key: &str) -> Result<Bytes20, Error>; fn remove_optional_hash256s( &mut self, key: &str, ) -> Result<Option<Vec<[u8; 32]>>, Error>; fn remove_hash256s(&mut self, key: &str) -> Result<Vec<[u8; 32]>, Error>; fn remove_identifiers( &mut self, key: &str, ) -> Result<Vec<Identifier>, Error>; fn remove_optional_identifiers( &mut self, key: &str, ) -> Result<Option<Vec<Identifier>>, Error>; fn remove_map_as_btree_map<K, V>( &mut self, key: &str, ) -> Result<BTreeMap<K, V>, Error> where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>; fn remove_optional_map_as_btree_map<K, V>( &mut self, key: &str, ) -> Result<Option<BTreeMap<K, V>>, Error> where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>; fn remove_map_as_btree_map_keep_values_as_platform_value<K, V>( &mut self, key: &str, ) -> Result<BTreeMap<K, Value>, Error> where K: TryFrom<Value, Error = Error> + Ord; fn remove_optional_map_as_btree_map_keep_values_as_platform_value<K>( &mut self, key: &str, ) -> Result<Option<BTreeMap<K, Value>>, Error> where K: TryFrom<Value, Error = Error> + Ord;
}

Required Methods§

Source

fn remove_optional_string(&mut self, key: &str) -> Result<Option<String>, Error>

Source

fn remove_string(&mut self, key: &str) -> Result<String, Error>

Source

fn remove_optional_float(&mut self, key: &str) -> Result<Option<f64>, Error>

Source

fn remove_float(&mut self, key: &str) -> Result<f64, Error>

Source

fn remove_optional_integer<T>(&mut self, key: &str) -> Result<Option<T>, Error>

Source

fn remove_integer<T>(&mut self, key: &str) -> Result<T, Error>

Source

fn remove_optional_hash256_bytes( &mut self, key: &str, ) -> Result<Option<[u8; 32]>, Error>

Source

fn remove_hash256_bytes(&mut self, key: &str) -> Result<[u8; 32], Error>

Source

fn remove_optional_bytes(&mut self, key: &str) -> Result<Option<Vec<u8>>, Error>

Source

fn remove_bytes(&mut self, key: &str) -> Result<Vec<u8>, Error>

Source

fn remove_optional_bool(&mut self, key: &str) -> Result<Option<bool>, Error>

Source

fn remove_bool(&mut self, key: &str) -> Result<bool, Error>

Source

fn remove_optional_identifier( &mut self, key: &str, ) -> Result<Option<Identifier>, Error>

Source

fn remove_identifier(&mut self, key: &str) -> Result<Identifier, Error>

Source

fn remove_binary_data(&mut self, key: &str) -> Result<BinaryData, Error>

Source

fn remove_optional_binary_data( &mut self, key: &str, ) -> Result<Option<BinaryData>, Error>

Source

fn remove_optional_bytes_32( &mut self, key: &str, ) -> Result<Option<Bytes32>, Error>

Source

fn remove_bytes_32(&mut self, key: &str) -> Result<Bytes32, Error>

Source

fn remove_optional_bytes_20( &mut self, key: &str, ) -> Result<Option<Bytes20>, Error>

Source

fn remove_bytes_20(&mut self, key: &str) -> Result<Bytes20, Error>

Source

fn remove_optional_hash256s( &mut self, key: &str, ) -> Result<Option<Vec<[u8; 32]>>, Error>

Source

fn remove_hash256s(&mut self, key: &str) -> Result<Vec<[u8; 32]>, Error>

Source

fn remove_identifiers(&mut self, key: &str) -> Result<Vec<Identifier>, Error>

Source

fn remove_optional_identifiers( &mut self, key: &str, ) -> Result<Option<Vec<Identifier>>, Error>

Source

fn remove_map_as_btree_map<K, V>( &mut self, key: &str, ) -> Result<BTreeMap<K, V>, Error>
where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>,

Source

fn remove_optional_map_as_btree_map<K, V>( &mut self, key: &str, ) -> Result<Option<BTreeMap<K, V>>, Error>
where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>,

Source

fn remove_map_as_btree_map_keep_values_as_platform_value<K, V>( &mut self, key: &str, ) -> Result<BTreeMap<K, Value>, Error>
where K: TryFrom<Value, Error = Error> + Ord,

Source

fn remove_optional_map_as_btree_map_keep_values_as_platform_value<K>( &mut self, key: &str, ) -> Result<Option<BTreeMap<K, Value>>, Error>
where K: TryFrom<Value, Error = Error> + Ord,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BTreeValueRemoveFromMapHelper for BTreeMap<String, &Value>

Source§

fn remove_optional_string(&mut self, key: &str) -> Result<Option<String>, Error>

Source§

fn remove_string(&mut self, key: &str) -> Result<String, Error>

Source§

fn remove_optional_float(&mut self, key: &str) -> Result<Option<f64>, Error>

Source§

fn remove_float(&mut self, key: &str) -> Result<f64, Error>

Source§

fn remove_optional_integer<T>(&mut self, key: &str) -> Result<Option<T>, Error>

Source§

fn remove_integer<T>(&mut self, key: &str) -> Result<T, Error>

Source§

fn remove_optional_hash256_bytes( &mut self, key: &str, ) -> Result<Option<[u8; 32]>, Error>

Source§

fn remove_hash256_bytes(&mut self, key: &str) -> Result<[u8; 32], Error>

Source§

fn remove_optional_bytes(&mut self, key: &str) -> Result<Option<Vec<u8>>, Error>

Source§

fn remove_bytes(&mut self, key: &str) -> Result<Vec<u8>, Error>

Source§

fn remove_optional_bool(&mut self, key: &str) -> Result<Option<bool>, Error>

Source§

fn remove_bool(&mut self, key: &str) -> Result<bool, Error>

Source§

fn remove_optional_identifier( &mut self, key: &str, ) -> Result<Option<Identifier>, Error>

Source§

fn remove_identifier(&mut self, key: &str) -> Result<Identifier, Error>

Source§

fn remove_binary_data(&mut self, key: &str) -> Result<BinaryData, Error>

Source§

fn remove_optional_binary_data( &mut self, key: &str, ) -> Result<Option<BinaryData>, Error>

Source§

fn remove_optional_bytes_32( &mut self, key: &str, ) -> Result<Option<Bytes32>, Error>

Source§

fn remove_bytes_32(&mut self, key: &str) -> Result<Bytes32, Error>

Source§

fn remove_optional_bytes_20( &mut self, key: &str, ) -> Result<Option<Bytes20>, Error>

Source§

fn remove_bytes_20(&mut self, key: &str) -> Result<Bytes20, Error>

Source§

fn remove_optional_hash256s( &mut self, key: &str, ) -> Result<Option<Vec<[u8; 32]>>, Error>

Source§

fn remove_hash256s(&mut self, key: &str) -> Result<Vec<[u8; 32]>, Error>

Source§

fn remove_identifiers(&mut self, key: &str) -> Result<Vec<Identifier>, Error>

Source§

fn remove_optional_identifiers( &mut self, key: &str, ) -> Result<Option<Vec<Identifier>>, Error>

Source§

fn remove_map_as_btree_map<K, V>( &mut self, key: &str, ) -> Result<BTreeMap<K, V>, Error>
where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>,

Source§

fn remove_optional_map_as_btree_map<K, V>( &mut self, key: &str, ) -> Result<Option<BTreeMap<K, V>>, Error>
where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>,

Source§

fn remove_map_as_btree_map_keep_values_as_platform_value<K, V>( &mut self, key: &str, ) -> Result<BTreeMap<K, Value>, Error>
where K: TryFrom<Value, Error = Error> + Ord,

Source§

fn remove_optional_map_as_btree_map_keep_values_as_platform_value<K>( &mut self, key: &str, ) -> Result<Option<BTreeMap<K, Value>>, Error>
where K: TryFrom<Value, Error = Error> + Ord,

Source§

impl BTreeValueRemoveFromMapHelper for BTreeMap<String, Value>

Source§

fn remove_optional_string(&mut self, key: &str) -> Result<Option<String>, Error>

Source§

fn remove_string(&mut self, key: &str) -> Result<String, Error>

Source§

fn remove_optional_float(&mut self, key: &str) -> Result<Option<f64>, Error>

Source§

fn remove_float(&mut self, key: &str) -> Result<f64, Error>

Source§

fn remove_optional_integer<T>(&mut self, key: &str) -> Result<Option<T>, Error>

Source§

fn remove_integer<T>(&mut self, key: &str) -> Result<T, Error>

Source§

fn remove_optional_hash256_bytes( &mut self, key: &str, ) -> Result<Option<[u8; 32]>, Error>

Source§

fn remove_hash256_bytes(&mut self, key: &str) -> Result<[u8; 32], Error>

Source§

fn remove_optional_bytes(&mut self, key: &str) -> Result<Option<Vec<u8>>, Error>

Source§

fn remove_bytes(&mut self, key: &str) -> Result<Vec<u8>, Error>

Source§

fn remove_optional_bool(&mut self, key: &str) -> Result<Option<bool>, Error>

Source§

fn remove_bool(&mut self, key: &str) -> Result<bool, Error>

Source§

fn remove_optional_identifier( &mut self, key: &str, ) -> Result<Option<Identifier>, Error>

Source§

fn remove_identifier(&mut self, key: &str) -> Result<Identifier, Error>

Source§

fn remove_binary_data(&mut self, key: &str) -> Result<BinaryData, Error>

Source§

fn remove_optional_binary_data( &mut self, key: &str, ) -> Result<Option<BinaryData>, Error>

Source§

fn remove_optional_bytes_32( &mut self, key: &str, ) -> Result<Option<Bytes32>, Error>

Source§

fn remove_bytes_32(&mut self, key: &str) -> Result<Bytes32, Error>

Source§

fn remove_optional_bytes_20( &mut self, key: &str, ) -> Result<Option<Bytes20>, Error>

Source§

fn remove_bytes_20(&mut self, key: &str) -> Result<Bytes20, Error>

Source§

fn remove_optional_hash256s( &mut self, key: &str, ) -> Result<Option<Vec<[u8; 32]>>, Error>

Source§

fn remove_hash256s(&mut self, key: &str) -> Result<Vec<[u8; 32]>, Error>

Source§

fn remove_identifiers(&mut self, key: &str) -> Result<Vec<Identifier>, Error>

Source§

fn remove_optional_identifiers( &mut self, key: &str, ) -> Result<Option<Vec<Identifier>>, Error>

Source§

fn remove_map_as_btree_map<K, V>( &mut self, key: &str, ) -> Result<BTreeMap<K, V>, Error>
where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>,

Source§

fn remove_optional_map_as_btree_map<K, V>( &mut self, key: &str, ) -> Result<Option<BTreeMap<K, V>>, Error>
where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>,

Source§

fn remove_map_as_btree_map_keep_values_as_platform_value<K, V>( &mut self, key: &str, ) -> Result<BTreeMap<K, Value>, Error>
where K: TryFrom<Value, Error = Error> + Ord,

Source§

fn remove_optional_map_as_btree_map_keep_values_as_platform_value<K>( &mut self, key: &str, ) -> Result<Option<BTreeMap<K, Value>>, Error>
where K: TryFrom<Value, Error = Error> + Ord,

Implementors§