pub struct Bool { /* private fields */ }
Expand description
Bool structure for True and False
Implementations
Trait Implementations
sourceimpl Append<Bool> for List
impl Append<Bool> for List
sourcefn append_back(&mut self, _bool: Bool) -> &mut Self
fn append_back(&mut self, _bool: Bool) -> &mut Self
append python bool: Bool struct
example
use python::{List, Bool, print};
use pretty_assertions::assert_eq;
let python_bool = Bool::new(true);
let mut python_list = List::new();
python_list.append_pbool(python_bool);
print(python_list);
// assert_eq!(123, 1233);
output
[True]
sourceimpl AppendFront<Bool> for List
impl AppendFront<Bool> for List
sourcefn append_front(&mut self, _bool: Bool) -> &mut Self
fn append_front(&mut self, _bool: Bool) -> &mut Self
append python bool: Bool struct
example
use python::{List, Bool, print};
use pretty_assertions::assert_eq;
let python_bool = Bool::new(true);
let mut python_list = List::new();
python_list.append_pbool(python_bool);
print(python_list);
// assert_eq!(123, 1233);
output
[True]
impl Copy for Bool
Auto Trait Implementations
impl RefUnwindSafe for Bool
impl Send for Bool
impl Sync for Bool
impl Unpin for Bool
impl UnwindSafe for Bool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more