pub type InheritableBtreeMap = InheritableField<BTreeMap<String, BTreeMap<String, String>>>;
Aliased Type§
enum InheritableBtreeMap {
Value(BTreeMap<String, BTreeMap<String, String>>),
Inherit(TomlInheritedField),
}
Variants§
Value(BTreeMap<String, BTreeMap<String, String>>)
The type that is used when not inheriting from a workspace.
Inherit(TomlInheritedField)
The type when inheriting from a workspace.
Implementations
Source§impl<T> InheritableField<T>
impl<T> InheritableField<T>
pub fn normalized(&self) -> Result<&T, UnresolvedError>
pub fn as_value(&self) -> Option<&T>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InheritableBtreeMap
impl<'de> Deserialize<'de> for InheritableBtreeMap
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<T: Clone> Clone for InheritableField<T>
impl<T: Clone> Clone for InheritableField<T>
Source§fn clone(&self) -> InheritableField<T>
fn clone(&self) -> InheritableField<T>
Returns a copy 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<T: Debug> Debug for InheritableField<T>
impl<T: Debug> Debug for InheritableField<T>
Source§impl<T> Serialize for InheritableField<T>where
T: Serialize,
impl<T> Serialize for InheritableField<T>where
T: Serialize,
impl<T: Copy> Copy for InheritableField<T>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Value
: 24 bytesInherit
: 0 bytes