Struct gcalc::Calculator
source · [−]pub struct Calculator { /* private fields */ }
Implementations
sourceimpl Calculator
impl Calculator
pub fn new() -> GcalcResult<Self>
pub fn no_header(self, tv: bool) -> Self
pub fn column_map(self, column_map: HashMap<String, String>) -> Self
pub fn strict_csv(self, tv: bool) -> Self
pub fn target_probability(self, target_probability: f32) -> Self
pub fn value(self, value: f32) -> Self
pub fn budget(self, budget: f32) -> Self
pub fn table_format(self, format: TableFormat) -> Self
pub fn prob_type(self, prob_type: ProbType) -> Self
pub fn probability(self, probability: f32) -> GcalcResult<Self>
pub fn constant(self, constant: f32) -> GcalcResult<Self>
pub fn precision(self, precision: usize) -> Self
pub fn csv_ref(self, csv_reference: CsvRef) -> Self
pub fn cost(self, cost: f32) -> Self
pub fn out_file(self, path: impl AsRef<Path>) -> Self
pub fn csv_fallback(self, behaviour: &str) -> GcalcResult<Self>
pub fn plot(self, tv: bool) -> Self
pub fn set_column_map(&mut self, column_map: HashMap<String, String>)
pub fn set_no_header(&mut self, tv: bool)
pub fn set_probability(
&mut self,
probability: f32,
update_initial_value: bool
) -> GcalcResult<()>
pub fn set_cost(&mut self, cost: f32, update_initial_value: bool)
pub fn set_constant(
&mut self,
constant: f32,
update_initial_value: bool
) -> GcalcResult<()>
pub fn set_strict_csv(&mut self, tv: bool)
pub fn set_target_probability(
&mut self,
target_probability: f32
) -> GcalcResult<()>
pub fn set_value(&mut self, value: f32)
pub fn set_budget(&mut self, budget: f32)
pub fn set_offset(&mut self, offset: usize)
pub fn set_table_format(&mut self, format: TableFormat)
pub fn set_prob_type(&mut self, prob_type: ProbType)
pub fn set_precision(&mut self, precision: usize)
pub fn set_csv_file(&mut self, csv_reference: CsvRef)
pub fn set_out_file(&mut self, path: &Path)
pub fn set_csv_value_fallback(&mut self, behaviour: &str) -> GcalcResult<()>
pub fn set_plot(&mut self, tv: bool)
pub fn print_range(
&mut self,
count: Option<usize>,
start_index: Option<usize>
) -> GcalcResult<()>
pub fn print_conditional(&mut self) -> GcalcResult<()>
pub fn print_qualfication(&mut self) -> GcalcResult<()>
Auto Trait Implementations
impl RefUnwindSafe for Calculator
impl Send for Calculator
impl Sync for Calculator
impl Unpin for Calculator
impl UnwindSafe for Calculator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more