mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Add some constants to native modules
This commit is contained in:
8 files changed
+84
-23
No files matched your search
@@ -65,6 +65,13 @@ impl Default for CodeFlags {
|
||||
}
|
||||
}
|
||||
|
||||
impl CodeFlags {
|
||||
pub const NAME_MAPPING: &'static [(&'static str, CodeFlags)] = &[
|
||||
("GENERATOR", CodeFlags::IS_GENERATOR),
|
||||
("COROUTINE", CodeFlags::IS_COROUTINE),
|
||||
];
|
||||
}
|
||||
|
||||
#[derive(Serialize, Debug, Deserialize, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct Label(usize);
|
||||
|
||||
|
||||
Reference in new issue
Block a user