pub struct SmartCalc {
pub config: SmartCalcConfig,
}
Fields
config: SmartCalcConfig
Implementations
sourceimpl SmartCalc
impl SmartCalc
pub fn set_decimal_seperator(&mut self, decimal_seperator: String)
pub fn set_thousand_separator(&mut self, thousand_separator: String)
pub fn set_timezone(&mut self, timezone: String) -> Result<(), String>
pub fn load_from_json(json_data: &str) -> Self
pub fn update_currency(&mut self, currency: &str, rate: f64) -> bool
pub fn token_generator(&self, session: &RefCell<Session>)
pub fn format_result(
&self,
session: &RefCell<Session>,
result: Rc<SmartCalcAstType>
) -> String
pub fn initialize()
pub fn token_cleaner(&self, session: &RefCell<Session>)
pub fn execute_text(&self, session: &RefCell<Session>) -> Option<ExecuteLine>
pub fn execute<Tlan: Borrow<str>, Tdata: Borrow<str>>(
&self,
language: Tlan,
data: Tdata
) -> ExecuteResult
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SmartCalc
impl Send for SmartCalc
impl Sync for SmartCalc
impl Unpin for SmartCalc
impl !UnwindSafe for SmartCalc
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