Docs.rs
  • rustpython-vm-0.3.0
    • rustpython-vm 0.3.0
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • coolreader18
    • windelbouwman
    • github:rustpython:packaging
    • Dependencies
      • ahash ^0.7.6 normal
      • ascii ^1.0 normal
      • atty ^0.2.14 normal
      • bitflags ^2.2.1 normal
      • bstr ^0.2.17 normal
      • caseless ^0.2.1 normal
      • cfg-if ^1.0 normal
      • chrono ^0.4.19 normal
      • crossbeam-utils ^0.8.9 normal
      • flame ^0.2.2 normal
      • flamer ^0.4 normal
      • getrandom ^0.2.6 normal
      • half ^1.8.2 normal
      • hex ^0.4.3 normal
      • indexmap ^1.8.1 normal
      • is-macro ^0.2.2 normal
      • itertools ^0.10.3 normal
      • libc ^0.2.133 normal
      • log ^0.4.16 normal
      • malachite-bigint ^0.1.0 normal
      • memchr ^2.4.1 normal
      • memoffset ^0.6.5 normal
      • nix ^0.26 normal
      • num-complex ^0.4.0 normal
      • num-integer ^0.1.44 normal
      • num-traits ^0.2 normal
      • num_enum ^0.5.7 normal
      • once_cell ^1.13 normal
      • optional ^0.5.0 normal
      • parking_lot ^0.12 normal
      • paste ^1.0.7 normal
      • rand ^0.8.5 normal
      • result-like ^0.4.5 normal
      • rustpython-ast ^0.3.0 normal
      • rustpython-codegen ^0.3.0 normal
      • rustpython-common ^0.3.0 normal
      • rustpython-compiler ^0.3.0 normal
      • rustpython-compiler-core ^0.3.0 normal
      • rustpython-derive ^0.3.0 normal
      • rustpython-format ^0.3.0 normal
      • rustpython-jit ^0.3.0 normal
      • rustpython-literal ^0.3.0 normal
      • rustpython-parser ^0.3.0 normal
      • rustpython-parser-core ^0.3.0 normal
      • serde ^1.0 normal
      • sre-engine ^0.4.1 normal
      • static_assertions ^1.1 normal
      • thiserror ^1.0 normal
      • thread_local ^1.1.4 normal
      • timsort ^0.1.2 normal
      • unic-ucd-bidi ^0.9.0 normal
      • unic-ucd-category ^0.9.0 normal
      • unic-ucd-ident ^0.9.0 normal
      • unicode-casing ^0.1.0 normal
      • unicode_names2 ^0.6.0 normal
      • glob ^0.3 build
      • itertools ^0.10.3 build
      • rustc_version ^0.4.0 build
      • num_cpus ^1.13.1 normal
      • rustyline ^11 normal
      • which ^4.2.5 normal
      • wasm-bindgen ^0.2.80 normal
      • exitcode ^1.1.2 normal
      • strum ^0.24.0 normal
      • strum_macros ^0.24.0 normal
      • uname ^0.1.1 normal
      • schannel ^0.1.19 normal
      • widestring ^0.5.1 normal
      • winapi ^0.3.9 normal
      • windows ^0.39.0 normal
      • winreg ^0.10.1 normal
    • Versions
    • 15.75% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

OpArgType

Required Methods

  • from_op_arg
  • to_op_arg

Implementations on Foreign Types

  • bool
  • u32

Implementors

In rustpython_vm::bytecode

?
Change settings

Trait rustpython_vm::bytecode::OpArgType

source ·
pub trait OpArgType: Copy {
    // Required methods
    fn from_op_arg(x: u32) -> Option<Self>;
    fn to_op_arg(self) -> u32;
}

Required Methods§

source

fn from_op_arg(x: u32) -> Option<Self>

source

fn to_op_arg(self) -> u32

Implementations on Foreign Types§

source§

impl OpArgType for u32

source§

fn from_op_arg(x: u32) -> Option<u32>

source§

fn to_op_arg(self) -> u32

source§

impl OpArgType for bool

source§

fn from_op_arg(x: u32) -> Option<bool>

source§

fn to_op_arg(self) -> u32

Implementors§

source§

impl OpArgType for BinaryOperator

source§

impl OpArgType for ComparisonOperator

source§

impl OpArgType for ConversionFlag

source§

impl OpArgType for RaiseKind

source§

impl OpArgType for TestOperator

source§

impl OpArgType for UnaryOperator

source§

impl OpArgType for Label

source§

impl OpArgType for MakeFunctionFlags

source§

impl OpArgType for UnpackExArgs