pub trait PyClassDef {
type Base: PyClassDef;
const NAME: &'static str;
const MODULE_NAME: Option<&'static str>;
const TP_NAME: &'static str;
const BASICSIZE: usize;
const DOC: ItemDoc = ItemDoc::NONE;
const ATTR_DOCS: &'static [(&'static str, u32, u32)] = _;
const ITEMSIZE: usize = 0;
const UNHASHABLE: bool = false;
const MEMBERS: &'static [PyMemberSpec] = _;
// Provided method
fn assert_member_layout() { ... }
}Required Associated Constants§
const NAME: &'static str
const MODULE_NAME: Option<&'static str>
const TP_NAME: &'static str
const BASICSIZE: usize
Provided Associated Constants§
const DOC: ItemDoc = ItemDoc::NONE
Sourceconst ATTR_DOCS: &'static [(&'static str, u32, u32)] = _
const ATTR_DOCS: &'static [(&'static str, u32, u32)] = _
Attribute name → database span, sorted by name.
(u32::MAX, 0) is an explicit empty doc.
const ITEMSIZE: usize = 0
const UNHASHABLE: bool = false
const MEMBERS: &'static [PyMemberSpec] = _
Required Associated Types§
type Base: PyClassDef
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".