Struct cairo_lang_compiler::project::ProjectConfig
source · pub struct ProjectConfig {
pub base_path: PathBuf,
pub corelib: Option<Directory>,
pub content: ProjectConfigContent,
}
Expand description
Cairo project config, including its file content and metadata about the file. This file is expected to be at a root of a crate and specify the crate name and location and of its dependency crates.
Fields§
§base_path: PathBuf
§corelib: Option<Directory>
§content: ProjectConfigContent
Implementations§
source§impl ProjectConfig
impl ProjectConfig
pub fn from_directory( directory: &Path ) -> Result<ProjectConfig, DeserializationError>
pub fn from_file(filename: &Path) -> Result<ProjectConfig, DeserializationError>
Trait Implementations§
source§impl Clone for ProjectConfig
impl Clone for ProjectConfig
source§fn clone(&self) -> ProjectConfig
fn clone(&self) -> ProjectConfig
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 ProjectConfig
impl Debug for ProjectConfig
source§impl PartialEq for ProjectConfig
impl PartialEq for ProjectConfig
source§fn eq(&self, other: &ProjectConfig) -> bool
fn eq(&self, other: &ProjectConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProjectConfig
impl StructuralEq for ProjectConfig
impl StructuralPartialEq for ProjectConfig
Auto Trait Implementations§
impl RefUnwindSafe for ProjectConfig
impl Send for ProjectConfig
impl Sync for ProjectConfig
impl Unpin for ProjectConfig
impl UnwindSafe for ProjectConfig
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.