Introduce AsPyObject to replace IdProtocol

This commit is contained in:
Jeong Yunwon
2022-04-17 08:20:28 +09:00
parent 9be1dc1f8b
commit 625f8675ae
68 changed files with 141 additions and 161 deletions

View File

@@ -33,14 +33,13 @@ mod array {
AsBuffer, AsMapping, Comparable, Constructor, IterNext, IterNextIterable, Iterable,
PyComparisonOp,
},
IdProtocol, PyObject, PyObjectRef, PyObjectView, PyObjectWrap, PyRef, PyResult,
PyValue, TryFromBorrowedObject, TryFromObject, TypeProtocol, VirtualMachine,
AsPyObject, PyObject, PyObjectRef, PyObjectView, PyRef, PyResult, PyValue,
TryFromBorrowedObject, TryFromObject, TypeProtocol, VirtualMachine,
},
};
use itertools::Itertools;
use num_traits::ToPrimitive;
use std::cmp::Ordering;
use std::{fmt, os::raw};
use std::{cmp::Ordering, fmt, os::raw};
macro_rules! def_array_enum {
($(($n:ident, $t:ty, $c:literal, $scode:literal)),*$(,)?) => {

View File

@@ -9,7 +9,7 @@ mod _json {
function::{IntoPyObject, IntoPyResult, OptionalArg},
protocol::PyIterReturn,
types::{Callable, Constructor},
IdProtocol, PyObjectRef, PyObjectView, PyResult, PyValue, VirtualMachine,
AsPyObject, PyObjectRef, PyObjectView, PyResult, PyValue, VirtualMachine,
};
use num_bigint::BigInt;
use std::str::FromStr;