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

pub struct PyBool { /* fields omitted */ }

Analog to a Python boolean type.

Read the module docs for more information.

Methods

impl PyBool[src]

pub unsafe fn from_ptr(ptr: *mut PyBool) -> PyBool[src]

Get a PyBool from a previously boxed raw pointer.

pub unsafe fn from_ptr_into_bool(ptr: *mut PyBool) -> bool[src]

Creates a bool from a raw pointer to a PyBool.

pub fn to_bool(self) -> bool[src]

Conversion from PyBool to bool.

pub fn into_raw(self) -> *mut PyBool[src]

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

pub fn load(&mut self, v: bool)[src]

Sets value of the underlying bool

Trait Implementations

impl AsRef<PyBool> for PyArg[src]

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

type Output = bool

The resulting type after applying the & operator.

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

type Output = bool

The resulting type after applying the & operator.

impl BitAnd<bool> for PyBool[src]

type Output = bool

The resulting type after applying the & operator.

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

type Output = bool

The resulting type after applying the & operator.

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

type Output = bool

The resulting type after applying the | operator.

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

type Output = bool

The resulting type after applying the | operator.

impl BitOr<bool> for PyBool[src]

type Output = bool

The resulting type after applying the | operator.

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

type Output = bool

The resulting type after applying the | operator.

impl Clone for PyBool[src]

impl Copy for PyBool[src]

impl Debug for PyBool[src]

impl Eq for PyBool[src]

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

impl From<PyArg> for PyBool[src]

impl From<PyBool> for bool[src]

impl From<PyBool> for PyArg[src]

impl From<bool> for PyBool[src]

impl From<i8> for PyBool[src]

impl Hash for PyBool[src]

impl Not for PyBool[src]

type Output = bool

The resulting type after applying the ! operator.

impl PartialEq<PyBool> for PyBool[src]

impl PartialEq<bool> for PyBool[src]

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

impl StructuralEq for PyBool[src]

impl StructuralPartialEq for PyBool[src]

Auto Trait Implementations

impl RefUnwindSafe for PyBool

impl Send for PyBool

impl Sync for PyBool

impl Unpin for PyBool

impl UnwindSafe for PyBool

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.