pub enum Construction {
New,
Call,
}Expand description
How an object of a Python class was made.
Variants§
New
cls.__new__(cls, *args): pickle’s NEWOBJ, what a plain class’s
instance is written as.
Call
callable(*args): pickle’s REDUCE, what OrderedDict() is.
Trait Implementations§
Source§impl Clone for Construction
impl Clone for Construction
impl Copy for Construction
Source§impl Debug for Construction
impl Debug for Construction
impl Eq for Construction
Source§impl PartialEq for Construction
impl PartialEq for Construction
impl StructuralPartialEq for Construction
Auto Trait Implementations§
impl Forget for Construction
impl Freeze for Construction
impl Move for Construction
impl RefUnwindSafe for Construction
impl Send for Construction
impl Sync for Construction
impl Unpin for Construction
impl UnsafeUnpin for Construction
impl UnwindSafe for Construction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more