pub struct RealMapping { /* private fields */ }Implementations§
Source§impl RealMapping
impl RealMapping
pub fn new_with_default( mapping: Arc<BTreeMap<MapKey, Result<RuntimeValue, cerr>>>, default: Option<Result<Box<RuntimeValue>, cerr>>, ) -> Self
pub fn with_default(&self, default: Result<RuntimeValue, cerr>) -> Self
pub fn keys(&self) -> Keys<'_, MapKey, Result<RuntimeValue, cerr>>
pub fn values(&self) -> Values<'_, MapKey, Result<RuntimeValue, cerr>>
pub fn len(&self) -> usize
pub fn get(&self, key: &MapKey) -> Result<&RuntimeValue, cerr>
Sourcepub fn get_by_seq<'a, 'k>(
&'a self,
key: impl IntoIterator<Item = &'k MapKey>,
) -> Result<Option<&'a RuntimeValue>, cerr>
pub fn get_by_seq<'a, 'k>( &'a self, key: impl IntoIterator<Item = &'k MapKey>, ) -> Result<Option<&'a RuntimeValue>, cerr>
Ok(None) means self (empty key)
pub fn is_empty(&self) -> bool
pub fn iter( &self, ) -> impl Iterator<Item = (&MapKey, &Result<RuntimeValue, cerr>)>
pub fn with_merged( &self, other: &BTreeMap<MapKey, Result<RuntimeValue, cerr>>, ) -> Result<Self, cerr>
pub fn with_new_keys<K: Into<MapKey>, V: Into<Result<RuntimeValue, cerr>>>( &self, other: impl IntoIterator<Item = (VecDeque<K>, V)>, ) -> Result<RealMapping, cerr>
Trait Implementations§
Source§impl AsRef<BTreeMap<MapKey, Result<RuntimeValue, cerr>>> for RealMapping
impl AsRef<BTreeMap<MapKey, Result<RuntimeValue, cerr>>> for RealMapping
Source§impl<X> AsRef<RealMapping> for MappingData<X>
impl<X> AsRef<RealMapping> for MappingData<X>
Source§fn as_ref(&self) -> &RealMapping
fn as_ref(&self) -> &RealMapping
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for RealMapping
impl Clone for RealMapping
Source§fn clone(&self) -> RealMapping
fn clone(&self) -> RealMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RealMapping
impl Debug for RealMapping
Source§impl Default for RealMapping
impl Default for RealMapping
Source§impl<'de> Deserialize<'de> for RealMapping
impl<'de> Deserialize<'de> for RealMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<(Arc<BTreeMap<MapKey, Result<RuntimeValue, cerr>>>, Result<Box<RuntimeValue>, cerr>)> for RealMapping
impl From<(Arc<BTreeMap<MapKey, Result<RuntimeValue, cerr>>>, Result<Box<RuntimeValue>, cerr>)> for RealMapping
Source§impl From<Arc<BTreeMap<MapKey, Result<RuntimeValue, cerr>>>> for RealMapping
impl From<Arc<BTreeMap<MapKey, Result<RuntimeValue, cerr>>>> for RealMapping
Source§impl From<BTreeMap<MapKey, Result<RuntimeValue, cerr>>> for RealMapping
impl From<BTreeMap<MapKey, Result<RuntimeValue, cerr>>> for RealMapping
Source§impl<X> From<MappingData<X>> for RealMapping
impl<X> From<MappingData<X>> for RealMapping
Source§fn from(value: MappingData<X>) -> Self
fn from(value: MappingData<X>) -> Self
Converts to this type from the input type.
Source§impl From<NetworkResponse> for RealMapping
impl From<NetworkResponse> for RealMapping
Source§fn from(value: NetworkResponse) -> Self
fn from(value: NetworkResponse) -> Self
Converts to this type from the input type.
Source§impl<X> From<RealMapping> for MappingData<X>
impl<X> From<RealMapping> for MappingData<X>
Source§fn from(value: RealMapping) -> Self
fn from(value: RealMapping) -> Self
Converts to this type from the input type.
Source§impl From<RealMapping> for MappingOrArray
impl From<RealMapping> for MappingOrArray
Source§fn from(value: RealMapping) -> Self
fn from(value: RealMapping) -> Self
Converts to this type from the input type.
Source§impl From<RealMapping> for Arc<BTreeMap<MapKey, Result<RuntimeValue, cerr>>>
impl From<RealMapping> for Arc<BTreeMap<MapKey, Result<RuntimeValue, cerr>>>
Source§fn from(value: RealMapping) -> Self
fn from(value: RealMapping) -> Self
Converts to this type from the input type.
Source§impl From<RealMapping> for RuntimeValue
impl From<RealMapping> for RuntimeValue
Source§fn from(value: RealMapping) -> Self
fn from(value: RealMapping) -> Self
Converts to this type from the input type.
Source§impl From<RealMapping> for RuntimeAny
impl From<RealMapping> for RuntimeAny
Source§fn from(value: RealMapping) -> Self
fn from(value: RealMapping) -> Self
Converts to this type from the input type.
Source§impl FromIterator<(MapKey, Result<RuntimeValue, cerr>)> for RealMapping
impl FromIterator<(MapKey, Result<RuntimeValue, cerr>)> for RealMapping
Source§fn from_iter<T: IntoIterator<Item = (MapKey, Result<RuntimeValue, cerr>)>>(
iter: T,
) -> Self
fn from_iter<T: IntoIterator<Item = (MapKey, Result<RuntimeValue, cerr>)>>( iter: T, ) -> Self
Creates a value from an iterator. Read more
Source§impl FromIterator<(MapKey, RuntimeValue)> for RealMapping
impl FromIterator<(MapKey, RuntimeValue)> for RealMapping
Source§fn from_iter<T: IntoIterator<Item = (MapKey, RuntimeValue)>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = (MapKey, RuntimeValue)>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for RealMapping
impl PartialEq for RealMapping
Source§fn eq(&self, other: &RealMapping) -> bool
fn eq(&self, other: &RealMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RealMapping
impl PartialOrd for RealMapping
Source§impl Serialize for RealMapping
impl Serialize for RealMapping
impl StructuralPartialEq for RealMapping
Auto Trait Implementations§
impl Freeze for RealMapping
impl RefUnwindSafe for RealMapping
impl Send for RealMapping
impl Sync for RealMapping
impl Unpin for RealMapping
impl UnsafeUnpin for RealMapping
impl UnwindSafe for RealMapping
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more