[−][src]Struct rustypy::pytypes::pybool::PyBool
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.
fn bitand(self, rhs: &'a bool) -> bool
[src]
impl<'a, 'b> BitAnd<&'a bool> for &'b PyBool
[src]
type Output = bool
The resulting type after applying the &
operator.
fn bitand(self, rhs: &'a bool) -> bool
[src]
impl BitAnd<bool> for PyBool
[src]
type Output = bool
The resulting type after applying the &
operator.
fn bitand(self, rhs: bool) -> bool
[src]
impl<'a> BitAnd<bool> for &'a PyBool
[src]
type Output = bool
The resulting type after applying the &
operator.
fn bitand(self, rhs: bool) -> bool
[src]
impl<'a> BitOr<&'a bool> for PyBool
[src]
type Output = bool
The resulting type after applying the |
operator.
fn bitor(self, rhs: &'a bool) -> bool
[src]
impl<'a, 'b> BitOr<&'a bool> for &'b PyBool
[src]
type Output = bool
The resulting type after applying the |
operator.
fn bitor(self, rhs: &'a bool) -> bool
[src]
impl BitOr<bool> for PyBool
[src]
type Output = bool
The resulting type after applying the |
operator.
fn bitor(self, rhs: bool) -> bool
[src]
impl<'a> BitOr<bool> for &'a PyBool
[src]
type Output = bool
The resulting type after applying the |
operator.
fn bitor(self, rhs: bool) -> bool
[src]
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Not for PyBool
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,