@@ -115,8 +115,10 @@ impl PySetterDef {
115
115
}
116
116
}
117
117
118
- #[ doc( hidden) ] // Only to be used through the proc macros
119
- /// Allows arbitrary pymethod blocks to submit their methods, which are eventually collected by pyclass
118
+ /// Implementation detail. Only to be used through the proc macros.
119
+ /// Allows arbitrary pymethod blocks to submit their methods, which are eventually
120
+ /// collected by pyclass.
121
+ #[ doc( hidden) ]
120
122
pub trait PyMethodsInventory : inventory:: Collect {
121
123
/// Create a new instance
122
124
fn new ( methods : & ' static [ PyMethodDefType ] ) -> Self ;
@@ -125,13 +127,14 @@ pub trait PyMethodsInventory: inventory::Collect {
125
127
fn get_methods ( & self ) -> & ' static [ PyMethodDefType ] ;
126
128
}
127
129
128
- # [ doc ( hidden ) ] // Only to be used through the proc macros
130
+ /// Implementation detail. Only to be used through the proc macros.
129
131
/// For pyclass derived structs, this trait collects method from all impl blocks using inventory.
132
+ #[ doc( hidden) ]
130
133
pub trait PyMethodsImpl {
131
- /// Normal methods, mainly defined by `#[pymethod]`.
134
+ /// Normal methods. Mainly defined by `#[pymethod]`.
132
135
type Methods : PyMethodsInventory ;
133
136
134
- /// Returns all methods that are defined for a class
137
+ /// Returns all methods that are defined for a class.
135
138
fn py_methods ( ) -> Vec < & ' static PyMethodDefType > {
136
139
inventory:: iter :: < Self :: Methods >
137
140
. into_iter ( )
0 commit comments