File tree 9 files changed +12
-1
lines changed
9 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ pub struct PyObjectMethods {
153
153
pub nb_bool : Option < ffi:: inquiry > ,
154
154
}
155
155
156
+ #[ doc( hidden) ]
156
157
impl PyObjectMethods {
157
158
pub ( crate ) fn update_typeobj ( & self , type_object : & mut ffi:: PyTypeObject ) {
158
159
type_object. tp_str = self . tp_str ;
@@ -162,7 +163,7 @@ impl PyObjectMethods {
162
163
type_object. tp_richcompare = self . tp_richcompare ;
163
164
type_object. tp_setattro = self . tp_setattro ;
164
165
}
165
-
166
+ // Set functions used by `#[pyproto]`.
166
167
pub fn set_str < T > ( & mut self )
167
168
where
168
169
T : for < ' p > PyObjectStrProtocol < ' p > ,
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ pub trait PyBufferReleaseBufferProtocol<'p>: PyBufferProtocol<'p> {
40
40
type Result : Into < PyResult < ( ) > > ;
41
41
}
42
42
43
+ /// Set functions used by `#[pyproto]`.
44
+ #[ doc( hidden) ]
43
45
impl PyBufferProcs {
44
46
pub fn set_getbuffer < T > ( & mut self )
45
47
where
Original file line number Diff line number Diff line change @@ -71,12 +71,14 @@ pub trait PyDescrSetNameProtocol<'p>: PyDescrProtocol<'p> {
71
71
type Result : Into < PyResult < ( ) > > ;
72
72
}
73
73
74
+ /// All FFI functions for description protocols.
74
75
#[ derive( Default ) ]
75
76
pub struct PyDescrMethods {
76
77
pub tp_descr_get : Option < ffi:: descrgetfunc > ,
77
78
pub tp_descr_set : Option < ffi:: descrsetfunc > ,
78
79
}
79
80
81
+ #[ doc( hidden) ]
80
82
impl PyDescrMethods {
81
83
pub ( crate ) fn update_typeobj ( & self , type_object : & mut ffi:: PyTypeObject ) {
82
84
type_object. tp_descr_get = self . tp_descr_get ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ pub struct PyGCMethods {
25
25
pub tp_clear : Option < ffi:: inquiry > ,
26
26
}
27
27
28
+ #[ doc( hidden) ]
28
29
impl PyGCMethods {
29
30
pub ( crate ) fn update_typeobj ( & self , type_object : & mut ffi:: PyTypeObject ) {
30
31
type_object. tp_traverse = self . tp_traverse ;
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ pub struct PyIterMethods {
46
46
pub tp_iternext : Option < ffi:: iternextfunc > ,
47
47
}
48
48
49
+ #[ doc( hidden) ]
49
50
impl PyIterMethods {
50
51
pub ( crate ) fn update_typeobj ( & self , type_object : & mut ffi:: PyTypeObject ) {
51
52
type_object. tp_iter = self . tp_iter ;
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ pub trait PyMappingReversedProtocol<'p>: PyMappingProtocol<'p> {
74
74
type Result : Into < PyResult < Self :: Success > > ;
75
75
}
76
76
77
+ #[ doc( hidden) ]
77
78
impl ffi:: PyMappingMethods {
78
79
pub fn set_length < T > ( & mut self )
79
80
where
Original file line number Diff line number Diff line change @@ -615,6 +615,7 @@ pub trait PyNumberIndexProtocol<'p>: PyNumberProtocol<'p> {
615
615
type Result : Into < PyResult < Self :: Success > > ;
616
616
}
617
617
618
+ #[ doc( hidden) ]
618
619
impl ffi:: PyNumberMethods {
619
620
pub ( crate ) fn from_nb_bool ( nb_bool : ffi:: inquiry ) -> * mut Self {
620
621
let mut nm = ffi:: PyNumberMethods_INIT ;
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ pub trait PyAsyncAexitProtocol<'p>: PyAsyncProtocol<'p> {
89
89
type Result : Into < PyResult < Self :: Success > > ;
90
90
}
91
91
92
+ #[ doc( hidden) ]
92
93
impl ffi:: PyAsyncMethods {
93
94
pub fn set_await < T > ( & mut self )
94
95
where
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ pub trait PySequenceInplaceRepeatProtocol<'p>: PySequenceProtocol<'p> + IntoPy<P
126
126
type Result : Into < PyResult < Self > > ;
127
127
}
128
128
129
+ #[ doc( hidden) ]
129
130
impl ffi:: PySequenceMethods {
130
131
pub fn set_len < T > ( & mut self )
131
132
where
You can’t perform that action at this time.
0 commit comments