pub struct EureConfig {
pub targets: HashMap<String, Target>,
}Expand description
The main Eure configuration.
Fields§
§targets: HashMap<String, Target>Check targets (name -> target definition).
Implementations§
Source§impl EureConfig
impl EureConfig
Sourcepub fn find_config_file(start_dir: &Path) -> Option<PathBuf>
pub fn find_config_file(start_dir: &Path) -> Option<PathBuf>
Find the configuration file by searching upward from the given directory.
Sourcepub fn get_target(&self, name: &str) -> Option<&Target>
pub fn get_target(&self, name: &str) -> Option<&Target>
Get a target by name.
Sourcepub fn target_names(&self) -> impl Iterator<Item = &str>
pub fn target_names(&self) -> impl Iterator<Item = &str>
Get all target names.
Trait Implementations§
Source§impl Clone for EureConfig
impl Clone for EureConfig
Source§fn clone(&self) -> EureConfig
fn clone(&self) -> EureConfig
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 EureConfig
impl Debug for EureConfig
Source§impl Default for EureConfig
impl Default for EureConfig
Source§fn default() -> EureConfig
fn default() -> EureConfig
Returns the “default value” for a type. Read more
Source§impl ParseDocument<'_> for EureConfig
impl ParseDocument<'_> for EureConfig
Source§type Error = ParseError
type Error = ParseError
The error type returned by parsing.
Source§impl PartialEq for EureConfig
impl PartialEq for EureConfig
impl StructuralPartialEq for EureConfig
Auto Trait Implementations§
impl Freeze for EureConfig
impl RefUnwindSafe for EureConfig
impl Send for EureConfig
impl Sync for EureConfig
impl Unpin for EureConfig
impl UnwindSafe for EureConfig
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