File tree 4 files changed +5
-5
lines changed 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ impl Hashable for PyFloat {
555
555
pub type PyFloatRef = PyRef < PyFloat > ;
556
556
557
557
// Retrieve inner float value:
558
- pub fn get_value ( obj : & PyObjectRef ) -> f64 {
558
+ pub ( crate ) fn get_value ( obj : & PyObjectRef ) -> f64 {
559
559
obj. payload :: < PyFloat > ( ) . unwrap ( ) . value
560
560
}
561
561
Original file line number Diff line number Diff line change @@ -888,7 +888,7 @@ fn detect_base(c: &u8) -> Option<u32> {
888
888
}
889
889
890
890
// Retrieve inner int value:
891
- pub fn get_value ( obj : & PyObjectRef ) -> & BigInt {
891
+ pub ( crate ) fn get_value ( obj : & PyObjectRef ) -> & BigInt {
892
892
& obj. payload :: < PyInt > ( ) . unwrap ( ) . value
893
893
}
894
894
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ pub(crate) fn init(context: &PyContext) {
162
162
// }
163
163
164
164
// Retrieve inner int value:
165
- pub fn get_value ( obj : & PyObjectRef ) -> bool {
165
+ pub ( crate ) fn get_value ( obj : & PyObjectRef ) -> bool {
166
166
!obj. payload :: < PyInt > ( ) . unwrap ( ) . borrow_value ( ) . is_zero ( )
167
167
}
168
168
Original file line number Diff line number Diff line change @@ -1183,11 +1183,11 @@ pub fn init(ctx: &PyContext) {
1183
1183
PyStrReverseIterator :: extend_class ( ctx, & ctx. types . str_reverseiterator_type ) ;
1184
1184
}
1185
1185
1186
- pub fn clone_value ( obj : & PyObjectRef ) -> String {
1186
+ pub ( crate ) fn clone_value ( obj : & PyObjectRef ) -> String {
1187
1187
String :: from ( obj. payload :: < PyStr > ( ) . unwrap ( ) . borrow_value ( ) )
1188
1188
}
1189
1189
1190
- pub fn borrow_value ( obj : & PyObjectRef ) -> & str {
1190
+ pub ( crate ) fn borrow_value ( obj : & PyObjectRef ) -> & str {
1191
1191
& obj. payload :: < PyStr > ( ) . unwrap ( ) . value
1192
1192
}
1193
1193
You can’t perform that action at this time.
0 commit comments