[−][src]Trait pyo3::conversion::ToPyObject
Conversion trait that allows various objects to be converted into PyObject
.
Required methods
Loading content...Implementations on Foreign Types
impl<'a, T: ?Sized> ToPyObject for &'a T where
T: ToPyObject,
[src]
T: ToPyObject,
Identity conversion: allows using existing PyObject
instances where
T: ToPyObject
is expected.
impl<T> ToPyObject for Option<T> where
T: ToPyObject,
[src]
T: ToPyObject,
Option::Some<T>
is converted like T
.
Option::None
is converted to Python None
.
impl ToPyObject for ()
[src]
()
is converted to Python None
.
impl ToPyObject for bool
[src]
Converts a Rust bool
to a Python bool
.
impl<K, V, H> ToPyObject for HashMap<K, V, H> where
K: Hash + Eq + ToPyObject,
V: ToPyObject,
H: BuildHasher,
[src]
K: Hash + Eq + ToPyObject,
V: ToPyObject,
H: BuildHasher,
impl<K, V> ToPyObject for BTreeMap<K, V> where
K: Eq + ToPyObject,
V: ToPyObject,
[src]
K: Eq + ToPyObject,
V: ToPyObject,
impl ToPyObject for f64
[src]
impl ToPyObject for f32
[src]
impl<T> ToPyObject for [T] where
T: ToPyObject,
[src]
T: ToPyObject,
impl<T> ToPyObject for Vec<T> where
T: ToPyObject,
[src]
T: ToPyObject,
impl ToPyObject for i8
[src]
impl ToPyObject for u8
[src]
impl ToPyObject for i16
[src]
impl ToPyObject for u16
[src]
impl ToPyObject for i32
[src]
impl ToPyObject for u32
[src]
impl ToPyObject for i64
[src]
impl ToPyObject for isize
[src]
impl ToPyObject for usize
[src]
impl ToPyObject for u64
[src]
impl ToPyObject for i128
[src]
impl ToPyObject for u128
[src]
impl<T> ToPyObject for HashSet<T> where
T: Hash + Eq + ToPyObject,
[src]
T: Hash + Eq + ToPyObject,
impl<T> ToPyObject for BTreeSet<T> where
T: Hash + Eq + ToPyObject,
[src]
T: Hash + Eq + ToPyObject,
impl ToPyObject for str
[src]
Converts a Rust str
to a Python object.
See PyString::new
for details on the conversion.
impl<'a> ToPyObject for Cow<'a, str>
[src]
Converts a Rust Cow<str>
to a Python object.
See PyString::new
for details on the conversion.
impl ToPyObject for String
[src]
Converts a Rust String
to a Python object.
See PyString::new
for details on the conversion.