Struct OptionsBuilder

Source
pub struct OptionsBuilder { /* private fields */ }
Expand description

Builder that conveniently allows to specify common Isabelle options.

Implementations§

Source§

impl OptionsBuilder

Source

pub fn new() -> Self

Source

pub fn threads(&mut self, threads: isize) -> &mut Self

Maximum number of worker threads for prover process (0 = hardware max.)

Source

pub fn thread_stack_limit(&mut self, limit: f32) -> &mut Self

Maximum stack size for worker threads (in giga words, 0 = unlimited)

Source

pub fn parallel_limit(&mut self, limit: isize) -> &mut Self

Approximative limit for parallel tasks (0 = unlimited)

Source

pub fn parallel_proofs(&mut self, limit: isize) -> &mut Self

Level of parallel proof checking: 0, 1, 2

Source

pub fn timeout_scale(&mut self, scale: f32) -> &mut Self

Scale factor for timeout in Isabelle/ML and session build

Source

pub fn record_proofs(&mut self, level: isize) -> &mut Self

Level of proofterm recording: 0, 1, 2, negative means unchanged

Source

pub fn quick_and_dirty(&mut self, flag: bool) -> &mut Self

If true then some tools will OMIT some proofs

Source

pub fn skip_proofs(&mut self, flag: bool) -> &mut Self

If true then skips over proofs (implicit ‘sorry’)

Source

pub fn timeout(&mut self, limit: f32) -> &mut Self

Timeout for session build job (seconds > 0)

Source

pub fn timeout_build(&mut self, flag: bool) -> &mut Self

Source

pub fn process_output_limit(&mut self, limit: isize) -> &mut Self

Build process output limit (in million characters, 0 = unlimited)

Source

pub fn process_output_tail(&mut self, tail: isize) -> &mut Self

Build process output tail shown to user (in lines, 0 = unlimited)

Source

pub fn pide_reports(&mut self, flag: bool) -> &mut Self

Source

pub fn build_pide_reports(&mut self, flag: bool) -> &mut Self

Trait Implementations§

Source§

impl Default for OptionsBuilder

Source§

fn default() -> OptionsBuilder

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

impl From<OptionsBuilder> for HashMap<String, String>

Source§

fn from(val: OptionsBuilder) -> Self

Consumes the builder and return a key value map of the specified options.

Auto Trait Implementations§

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.