pub struct Class { /* private fields */ }Expand description
Implementations§
Trait Implementations§
impl Copy for Class
impl Eq for Class
Source§impl Native for Class
impl Native for Class
Source§fn display(&self) -> String
fn display(&self) -> String
What
str prints, which for a type with no __str__ of its own is
whatever repr prints. Almost every native type wants the default. An
exception is the one that does not, because str(e) is the message and
repr(e) is the call that would make it again.Source§fn truthy(&self) -> bool
fn truthy(&self) -> bool
Python’s truth protocol, which for an object with no
__bool__ and no
__len__ is true. Almost every native type wants the default.Source§fn walking(&self) -> bool
fn walking(&self) -> bool
Whether this is already an iterator, meaning
iter(x) is x and a for
over a half consumed one carries on rather than starting again. Read moreimpl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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