Struct amfnengine::engine::elem_preferences::ElemPreferences [−]
Implementations
impl ElemPreferences
Preferences definition implementation.
pub fn new(
calc_manager_param: &Rc<RefCell<CalcManager>>,
locale_str_param: &str,
cross_rate_code_param: &str,
default_encoding_param: &str,
group_param: &str,
fiscal_year_start_param: usize,
decimal_digits_param: usize,
combine_principal_param: i32,
compress_descriptor_param: i32,
statistic_events_param: i32,
list_parameter_param: Option<&ListParameter>,
list_descriptor_param: Option<&ListDescriptor>,
copy_propagate_param: bool,
updating_json: bool
) -> ElemPreferences
calc_manager_param: &Rc<RefCell<CalcManager>>,
locale_str_param: &str,
cross_rate_code_param: &str,
default_encoding_param: &str,
group_param: &str,
fiscal_year_start_param: usize,
decimal_digits_param: usize,
combine_principal_param: i32,
compress_descriptor_param: i32,
statistic_events_param: i32,
list_parameter_param: Option<&ListParameter>,
list_descriptor_param: Option<&ListDescriptor>,
copy_propagate_param: bool,
updating_json: bool
) -> ElemPreferences
Create and return a new preferences element.
Arguments
calc_manager_param
- Calculator manager element.locale_str_param
- Locale string.cross_rate_code_param
- Cross rate code.default_encoding_param
- Default encoding.group_param
- Group name.fiscal_year_start_param
- Fiscal year start.decimal_digits_param
- Decimal digits.combine_principal_param
- Combine principal.compress_descriptor_param
- Compress descriptors.statistic_events_param
- Statistic events.list_parameter_param
- List parameter.list_descriptor_param
- List descriptor.copy_propagate_param
- Copy propogate.elem_level_param
- Element levelupdating_json
- Updating from Json.
Return
- See description.
pub fn clear(&mut self)
Clear all values and lists.
pub fn copy(&self, updating_json: bool) -> ElemPreferences
Copy this preferences element and return a new preferences element.
Arguments
updating_json
- Updating from Json.
Return
- See description.
pub fn copy_with_calc_manager(
&self,
calc_manager: &Rc<RefCell<CalcManager>>,
updating_json: bool
) -> ElemPreferences
&self,
calc_manager: &Rc<RefCell<CalcManager>>,
updating_json: bool
) -> ElemPreferences
Copy this preferences element and return a new preferences element.
Arguments
calc_manager
- Calculator manager element.elem_level_param
- Element levelupdating_json
- Updating from Json.
Return
- See description.
pub fn locale_str(&self) -> &str
pub fn cross_rate_code(&self) -> &str
Get the cross rate international currency code (e.g., USD, GBP, JPY, AUD, EUR, other currency code).
Return
- See description.
pub fn default_encoding(&self) -> &str
Get the default encoding (us-ascii, iso-8859-1, utf-8, utf-16be, utf-16le, utf-16, other encoding).
Return
- See description.
pub fn group(&self) -> &str
pub fn fiscal_year_start(&self) -> usize
pub fn decimal_digits(&self) -> usize
pub fn combine_principal(&self) -> i32
Get the combine principal change events that are identical except their values and ListDescriptor objects (1=set,0=reset,-1=not set).
Return
- See description.
pub fn compress_descriptor(&self) -> i32
Get the after balancing and during compression, merge ListDescriptor objects (1=set,0=reset,-1=not set).
Return
- See description.
pub fn statistic_events(&self) -> i32
Get the eliminate statistic events from the compressed event list (1=set,0=reset,-1=not set).
Return
- See description.
pub fn list_parameter(&self) -> &ListParameter
pub fn list_parameter_mut(&mut self) -> &mut ListParameter
pub fn list_descriptor(&self) -> &ListDescriptor
pub fn list_descriptor_mut(&mut self) -> &mut ListDescriptor
pub fn set_locale_str(&mut self, locale_str_param: &str)
pub fn set_cross_rate_code(&mut self, cross_rate_code_param: &str)
Set the cross rate international currency code (e.g., USD, GBP, JPY, AUD, EUR, other currency code).
Arguments
cross_rate_code_param
- See description.
pub fn set_default_encoding(&mut self, default_encoding_param: &str)
Set the default encoding (us-ascii, iso-8859-1, utf-8, utf-16be, utf-16le, utf-16, other encoding).
Arguments
default_encoding_param
- See description.
pub fn set_group(&mut self, group_param: &str)
pub fn set_group_result(&mut self, group_param: &str)
pub fn set_fiscal_year_start(
&self,
fiscal_year_start_param: usize,
cashflow_level: bool
)
&self,
fiscal_year_start_param: usize,
cashflow_level: bool
)
Set the start of fiscal year in MMDD format.
Arguments
fiscal_year_start_param
- See description.cashflow_level
- Cashflow level.
pub fn set_decimal_digits(
&self,
decimal_digits_param: usize,
cashflow_level: bool
)
&self,
decimal_digits_param: usize,
cashflow_level: bool
)
Set the number of significant decimal digits.
Arguments
decimal_digits_param
- See description.cashflow_level
- Cashflow level.
pub fn set_combine_principal(&mut self, combine_principal_param: i32)
Set the combine principal change events that are identical except their values and ListDescriptor objects (1=set,0=reset,-1=not set).
Arguments
combine_principal_param
- See description.
pub fn set_compress_descriptor(&mut self, compress_descriptor_param: i32)
Set the After balancing and during compression, merge ListDescriptor objects (1=set,0=reset,-1=not set).
Arguments
compress_descriptor_param
- See description.
pub fn set_statistic_events(&mut self, statistic_events_param: i32)
Set the Eliminate statistic events from the compressed event list (1=set,0=reset,-1=not set).
Arguments
statistic_events_param
- See description.
Auto Trait Implementations
impl !RefUnwindSafe for ElemPreferences
impl !Send for ElemPreferences
impl !Sync for ElemPreferences
impl Unpin for ElemPreferences
impl !UnwindSafe for ElemPreferences
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,