pub struct CrackersConfig {
pub meta: MetaConfig,
pub specification: SpecificationConfig,
pub library: GadgetLibraryConfig,
pub sleigh: SleighConfig,
pub synthesis: SynthesisConfig,
pub constraint: Option<ConstraintConfig>,
}Expand description
This struct represents the serializable configuration found in a crackers .toml file. Once parsed from a file or constructed programmatically, it can be used to produce a crate::synthesis::builder::SynthesisParams struct, which can run the actual algorithm
Fields§
§meta: MetaConfig§specification: SpecificationConfig§library: GadgetLibraryConfig§sleigh: SleighConfig§synthesis: SynthesisConfig§constraint: Option<ConstraintConfig>Implementations§
Source§impl CrackersConfig
impl CrackersConfig
pub fn resolve(&self) -> Result<SynthesisParams, CrackersError>
Trait Implementations§
Source§impl Clone for CrackersConfig
impl Clone for CrackersConfig
Source§fn clone(&self) -> CrackersConfig
fn clone(&self) -> CrackersConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CrackersConfig
impl Debug for CrackersConfig
Source§impl<'de> Deserialize<'de> for CrackersConfig
impl<'de> Deserialize<'de> for CrackersConfig
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
Auto Trait Implementations§
impl Freeze for CrackersConfig
impl RefUnwindSafe for CrackersConfig
impl Send for CrackersConfig
impl Sync for CrackersConfig
impl Unpin for CrackersConfig
impl UnsafeUnpin for CrackersConfig
impl UnwindSafe for CrackersConfig
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