Struct rustypy::pytypes::pybool::PyBool [] [src]

pub struct PyBool { /* fields omitted */ }

Analog to a Python boolean type.

Read the module docs for more information.

Methods

impl PyBool
[src]

Get a PyBool from a previously boxed raw pointer.

Creates a bool from a raw pointer to a PyBool.

Conversion from PyBool to bool.

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

Sets value of the underlying bool

Trait Implementations

impl Clone for PyBool
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PyBool
[src]

Formats the value using the given formatter.

impl PartialEq for PyBool
[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 PyBool
[src]

impl Hash for PyBool
[src]

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

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

impl Copy for PyBool
[src]

impl From<bool> for PyBool
[src]

Performs the conversion.

impl<'a> From<&'a bool> for PyBool
[src]

Performs the conversion.

impl From<i8> for PyBool
[src]

Performs the conversion.

impl PartialEq<bool> for PyBool
[src]

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

This method tests for !=.

impl<'a> PartialEq<bool> for &'a PyBool
[src]

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

This method tests for !=.

impl Not for PyBool
[src]

The resulting type after applying the ! operator

The method for the unary ! operator

impl BitAnd<bool> for PyBool
[src]

The resulting type after applying the & operator

The method for the & operator

impl<'a> BitAnd<bool> for &'a PyBool
[src]

The resulting type after applying the & operator

The method for the & operator

impl<'a> BitAnd<&'a bool> for PyBool
[src]

The resulting type after applying the & operator

The method for the & operator

impl<'a, 'b> BitAnd<&'a bool> for &'b PyBool
[src]

The resulting type after applying the & operator

The method for the & operator

impl BitOr<bool> for PyBool
[src]

The resulting type after applying the | operator

The method for the | operator

impl<'a> BitOr<bool> for &'a PyBool
[src]

The resulting type after applying the | operator

The method for the | operator

impl<'a> BitOr<&'a bool> for PyBool
[src]

The resulting type after applying the | operator

The method for the | operator

impl<'a, 'b> BitOr<&'a bool> for &'b PyBool
[src]

The resulting type after applying the | operator

The method for the | operator

impl From<PyArg> for PyBool
[src]

Performs the conversion.