Struct rustypy::pytypes::pystring::PyString [] [src]

pub struct PyString { /* fields omitted */ }

An analog of a Python string.

Read the module docs for more information.

Methods

impl PyString
[src]

Get a PyString from a previously boxed raw pointer.

Constructs an owned String from a PyString.

Constructs an owned String from a raw pointer.

Returns PyString as a raw pointer. Use this whenever you want to return a PyString to Python.

Return a PyString from a raw char pointer.

Trait Implementations

impl Clone for PyString
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PyString
[src]

Formats the value using the given formatter.

impl PartialEq for PyString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for PyString
[src]

impl Hash for PyString
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for PyString
[src]

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for PyString
[src]

Copies a string slice to a PyString.

impl From<String> for PyString
[src]

Copies a String to a PyString.

impl From<PyArg> for PyString
[src]

Performs the conversion.