pub struct ResolvedConfiguration(/* private fields */);Expand description
Fully-interpolated configuration values handed to
ElementRuntime::materialize. Every entry is a concrete
Value; all tokens have been resolved.
Implementations§
Source§impl ResolvedConfiguration
impl ResolvedConfiguration
Sourcepub fn insert(&mut self, name: ParameterName, value: Value) -> Option<Value>
pub fn insert(&mut self, name: ParameterName, value: Value) -> Option<Value>
Insert or replace a resolved value. Returns the previous value
for name, if any.
Sourcepub fn get(&self, name: &ParameterName) -> Option<&Value>
pub fn get(&self, name: &ParameterName) -> Option<&Value>
Look up a resolved value.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&ParameterName, &Value)>
pub fn iter(&self) -> impl Iterator<Item = (&ParameterName, &Value)>
Sorted-by-key iterator.
Trait Implementations§
Source§impl Clone for ResolvedConfiguration
impl Clone for ResolvedConfiguration
Source§fn clone(&self) -> ResolvedConfiguration
fn clone(&self) -> ResolvedConfiguration
Returns a duplicate of the value. Read more
1.0.0 · 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 ResolvedConfiguration
impl Debug for ResolvedConfiguration
Source§impl Default for ResolvedConfiguration
impl Default for ResolvedConfiguration
Source§fn default() -> ResolvedConfiguration
fn default() -> ResolvedConfiguration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResolvedConfiguration
impl<'de> Deserialize<'de> for ResolvedConfiguration
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 FromIterator<(ParameterName, Value)> for ResolvedConfiguration
impl FromIterator<(ParameterName, Value)> for ResolvedConfiguration
Source§fn from_iter<I: IntoIterator<Item = (ParameterName, Value)>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = (ParameterName, Value)>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for ResolvedConfiguration
impl PartialEq for ResolvedConfiguration
Source§impl Serialize for ResolvedConfiguration
impl Serialize for ResolvedConfiguration
impl StructuralPartialEq for ResolvedConfiguration
Auto Trait Implementations§
impl Freeze for ResolvedConfiguration
impl RefUnwindSafe for ResolvedConfiguration
impl Send for ResolvedConfiguration
impl Sync for ResolvedConfiguration
impl Unpin for ResolvedConfiguration
impl UnsafeUnpin for ResolvedConfiguration
impl UnwindSafe for ResolvedConfiguration
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