decimal128: should implement Display Trait

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None

      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())
      }
      }

            Assignee:
            Irina Shestak (Inactive)
            Reporter:
            Irina Shestak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: