Trait AsPy

Source
pub trait AsPy {
    // Required method
    fn as_py(&self) -> String;
}
Expand description

Convert a Rust value to a Python source code string.

Required Methods§

Source

fn as_py(&self) -> String

Implementations on Foreign Types§

Source§

impl AsPy for &str

Source§

fn as_py(&self) -> String

Source§

impl AsPy for bool

Source§

fn as_py(&self) -> String

Source§

impl AsPy for f64

Source§

fn as_py(&self) -> String

Source§

impl AsPy for i32

Source§

fn as_py(&self) -> String

Source§

impl AsPy for String

Source§

fn as_py(&self) -> String

Source§

impl AsPy for Vec<Opt>

Source§

fn as_py(&self) -> String

Implementors§