File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed
Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -72,22 +72,6 @@ impl Decimal128 {
7272 }
7373 }
7474
75- /// Construct a `Decimal128` from a `i32` number.
76- ///
77- /// ```rust
78- /// use bson::decimal128::Decimal128;
79- ///
80- /// let num: i32 = 23;
81- /// let dec128 = Decimal128::from_i32(num);
82- /// let int = dec128.into_i32();
83- /// assert_eq!(int, num);
84- /// ```
85- #[ allow( clippy:: wrong_self_convention) ]
86- #[ deprecated( since = "0.15.0" , note = "Replaced by `to_i32`" ) ]
87- pub fn into_i32 ( & self ) -> i32 {
88- Into :: into ( self . inner )
89- }
90-
9175 /// Construct a `Decimal128` from a `i32` number.
9276 ///
9377 /// ```rust
@@ -102,22 +86,6 @@ impl Decimal128 {
10286 Into :: into ( self . inner )
10387 }
10488
105- /// Construct a `Decimal128` from a `i32` number.
106- ///
107- /// ```rust
108- /// use bson::decimal128::Decimal128;
109- ///
110- /// let num: u32 = 23;
111- /// let dec128 = Decimal128::from_u32(num);
112- /// let int = dec128.into_u32();
113- /// assert_eq!(int, num);
114- /// ```
115- #[ allow( clippy:: wrong_self_convention) ]
116- #[ deprecated( since = "0.15.0" , note = "Replaced by `to_u32`" ) ]
117- pub fn into_u32 ( & self ) -> u32 {
118- Into :: into ( self . inner )
119- }
120-
12189 /// Construct a `Decimal128` from a `i32` number.
12290 ///
12391 /// ```rust
You can’t perform that action at this time.
0 commit comments