Struct cairo_lang_compiler::project::AllCratesConfig
source · pub struct AllCratesConfig {
pub global: SingleCrateConfig,
pub override_map: OrderedHashMap<SmolStr, SingleCrateConfig>,
}
Expand description
Additional configurations for all crates.
Fields§
§global: SingleCrateConfig
The configuration for non overridden crates.
override_map: OrderedHashMap<SmolStr, SingleCrateConfig>
Configuration override per crate.
Implementations§
source§impl AllCratesConfig
impl AllCratesConfig
sourcepub fn get(&self, crate_name: &str) -> &SingleCrateConfig
pub fn get(&self, crate_name: &str) -> &SingleCrateConfig
Returns the configuration for the given crate.
Trait Implementations§
source§impl Clone for AllCratesConfig
impl Clone for AllCratesConfig
source§fn clone(&self) -> AllCratesConfig
fn clone(&self) -> AllCratesConfig
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 Debug for AllCratesConfig
impl Debug for AllCratesConfig
source§impl Default for AllCratesConfig
impl Default for AllCratesConfig
source§fn default() -> AllCratesConfig
fn default() -> AllCratesConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AllCratesConfig
impl<'de> Deserialize<'de> for AllCratesConfig
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AllCratesConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<AllCratesConfig, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for AllCratesConfig
impl PartialEq for AllCratesConfig
source§fn eq(&self, other: &AllCratesConfig) -> bool
fn eq(&self, other: &AllCratesConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AllCratesConfig
impl Serialize for AllCratesConfig
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AllCratesConfig
impl StructuralEq for AllCratesConfig
impl StructuralPartialEq for AllCratesConfig
Auto Trait Implementations§
impl RefUnwindSafe for AllCratesConfig
impl Send for AllCratesConfig
impl Sync for AllCratesConfig
impl Unpin for AllCratesConfig
impl UnwindSafe for AllCratesConfig
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.