pub struct Bool { /* private fields */ }
Expand description
Bool structure for True and False
Implementations§
Trait Implementations§
Source§impl Append<Bool> for List
impl Append<Bool> for List
Source§fn 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::*;
use pretty_assertions::assert_eq;
let python_bool = Bool::new(true);
let mut python_list = List::new();
python_list.append_back(python_bool);
print(python_list);
// assert_eq!(123, 1233);
output
[True]
Source§impl AppendFront<Bool> for List
impl AppendFront<Bool> for List
Source§fn 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::*;
use pretty_assertions::assert_eq;
let python_bool = Bool::new(true);
let mut python_list = List::new();
python_list.append_back(python_bool);
print(python_list);
// assert_eq!(123, 1233);
output
[True]
impl Copy for Bool
impl Eq for Bool
impl StructuralPartialEq for Bool
Auto Trait Implementations§
impl Freeze for Bool
impl RefUnwindSafe for Bool
impl Send for Bool
impl Sync for Bool
impl Unpin for Bool
impl UnwindSafe for Bool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more