Struct Thinline

Source
pub struct Thinline<T>
where T: LanguageType,
{ pub project_parameters: ProjectParameters, pub analysis: Analysis<T>, pub synthesis: Synthesis, }
Expand description

Global structure representing the Thinline lib.

Fields§

§project_parameters: ProjectParameters

The parsed project parameters.

§analysis: Analysis<T>

The structure holding the analysis_c data.

§synthesis: Synthesis

The structure holding the synthesized testdata.

Implementations§

Source§

impl<T> Thinline<T>
where T: LanguageType,

Source

pub fn new() -> Self

Creates an instance of the lib containing Thinlines functionality.

Examples found in repository?
examples/collect_files.rs (line 7)
6fn main() {
7    let mut tl: Thinline<C> = Thinline::new();
8    match tl.analyze_project("examples/c_project") {
9        Ok(_) => {
10            println!("Analyzed project successfully.");
11        }
12        Err(e) => println!("{}", e.to_string()),
13    }
14}
Source

pub fn parse_project_config<P: Into<PathBuf>>( &mut self, project_dir: P, config_name: &str, ) -> Fallible<()>

Parses configuration from the given config yaml.

Source

pub fn analyze_project<P: Into<PathBuf>>( &mut self, project_path: P, ) -> Fallible<()>

Analyzes the project which should be tested.

Examples found in repository?
examples/collect_files.rs (line 8)
6fn main() {
7    let mut tl: Thinline<C> = Thinline::new();
8    match tl.analyze_project("examples/c_project") {
9        Ok(_) => {
10            println!("Analyzed project successfully.");
11        }
12        Err(e) => println!("{}", e.to_string()),
13    }
14}

Trait Implementations§

Source§

impl<T> Debug for Thinline<T>
where T: LanguageType + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Default for Thinline<T>
where T: LanguageType + Default,

Source§

fn default() -> Thinline<T>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T> !Freeze for Thinline<T>

§

impl<T> !RefUnwindSafe for Thinline<T>

§

impl<T> Send for Thinline<T>
where T: Send,

§

impl<T> !Sync for Thinline<T>

§

impl<T> Unpin for Thinline<T>
where T: Unpin,

§

impl<T> UnwindSafe for Thinline<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.