pub struct CalcJsonSerialize { /* private fields */ }
Implementations
impl CalcJsonSerialize
impl CalcJsonSerialize
The serilaize json implementation of the AmFn engine.
pub fn new(calc_manager_param: &Rc<RefCell<CalcManager>>) -> CalcJsonSerialize
pub fn new(calc_manager_param: &Rc<RefCell<CalcManager>>) -> CalcJsonSerialize
pub fn serialize_extension(
&self,
ext: &ElemExtension,
value: Decimal,
frequency: FrequencyType,
add_comma: bool,
all_data: bool
) -> String
pub fn serialize_extension(
&self,
ext: &ElemExtension,
value: Decimal,
frequency: FrequencyType,
add_comma: bool,
all_data: bool
) -> String
Serialize extension.
Arguments
ext
- Extension to serialize.buf
- Buffer to append serialization.add_comma
- Append comma on last line of output.all_data
- Serialize all data properties.
Auto Trait Implementations
impl !RefUnwindSafe for CalcJsonSerialize
impl !Send for CalcJsonSerialize
impl !Sync for CalcJsonSerialize
impl Unpin for CalcJsonSerialize
impl !UnwindSafe for CalcJsonSerialize
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