[COMPASS-3658] decimal128: should implement Display Trait Created: 22/May/19  Updated: 23/May/19  Resolved: 23/May/19

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Irina Shestak (Inactive) Assignee: Irina Shestak (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: COMPASS-3418
Story Points: 2
Sprint: Iteration Echidna

 Description   

bson crate needs decimal128 to have a Display Trait. This should mostly be a wrapper around the to_string method. If there are no hiccups along the way, the below should work:
impl fmt::Display for Decimal128 { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "({}, {})", self.to_string())
}
}


Generated at Wed Feb 07 22:33:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.