pub enum PythonClassDefPlaceholder {
Name,
Bases,
Keywords,
Body,
DecoratorList,
TypeParams,
}Variants§
Name
The name of the class
Bases
a list of nodes for explicitly specified base classes
Keywords
a list of keyword nodes, principally for ‘metaclass’. Other keywords will be passed to the metaclass, as per PEP 3115.
Body
The body of the class
DecoratorList
The list of decorators to be applied, stored outermost first (i.e. the first in the list will be applied last).
TypeParams
A list of type parameters
Trait Implementations§
Source§impl Clone for PythonClassDefPlaceholder
impl Clone for PythonClassDefPlaceholder
Source§fn clone(&self) -> PythonClassDefPlaceholder
fn clone(&self) -> PythonClassDefPlaceholder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PythonClassDefPlaceholder
impl Debug for PythonClassDefPlaceholder
Source§impl<'de> Deserialize<'de> for PythonClassDefPlaceholder
impl<'de> Deserialize<'de> for PythonClassDefPlaceholder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PythonClassDefPlaceholder
impl Display for PythonClassDefPlaceholder
Source§impl<'_derivative_strum> From<&'_derivative_strum PythonClassDefPlaceholder> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum PythonClassDefPlaceholder> for &'static str
Source§fn from(x: &'_derivative_strum PythonClassDefPlaceholder) -> &'static str
fn from(x: &'_derivative_strum PythonClassDefPlaceholder) -> &'static str
Converts to this type from the input type.
Source§impl From<PythonClassDefPlaceholder> for &'static str
impl From<PythonClassDefPlaceholder> for &'static str
Source§fn from(x: PythonClassDefPlaceholder) -> &'static str
fn from(x: PythonClassDefPlaceholder) -> &'static str
Converts to this type from the input type.
Source§impl Hash for PythonClassDefPlaceholder
impl Hash for PythonClassDefPlaceholder
impl Eq for PythonClassDefPlaceholder
impl StructuralPartialEq for PythonClassDefPlaceholder
Auto Trait Implementations§
impl Freeze for PythonClassDefPlaceholder
impl RefUnwindSafe for PythonClassDefPlaceholder
impl Send for PythonClassDefPlaceholder
impl Sync for PythonClassDefPlaceholder
impl Unpin for PythonClassDefPlaceholder
impl UnwindSafe for PythonClassDefPlaceholder
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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