Enum codeviz::python::ElementSpec
[−]
[src]
pub enum ElementSpec {
Statement(Statement),
Literal(String),
Elements(Vec<ElementSpec>),
Nested(Box<ElementSpec>),
Spacing,
}Variants
Statement(Statement)Literal(String)Elements(Vec<ElementSpec>)Nested(Box<ElementSpec>)SpacingMethods
impl ElementSpec[src]
fn format<E>(&self, current: &str, indent: &str, out: &mut E) where
E: ElementFormat,
E: ElementFormat,
Trait Implementations
impl Debug for ElementSpec[src]
impl Clone for ElementSpec[src]
fn clone(&self) -> ElementSpec
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a, T> From<&'a T> for ElementSpec where
T: Into<ElementSpec> + Clone, [src]
T: Into<ElementSpec> + Clone,
fn from(value: &'a T) -> ElementSpec
Performs the conversion.
impl<'a> From<&'a str> for ElementSpec[src]
fn from(value: &'a str) -> ElementSpec
Performs the conversion.
impl From<MethodSpec> for ElementSpec[src]
fn from(value: MethodSpec) -> ElementSpec
Performs the conversion.
impl From<ClassSpec> for ElementSpec[src]
fn from(value: ClassSpec) -> ElementSpec
Performs the conversion.
impl From<DecoratorSpec> for ElementSpec[src]
fn from(value: DecoratorSpec) -> ElementSpec
Performs the conversion.
impl From<Statement> for ElementSpec[src]
fn from(value: Statement) -> ElementSpec
Performs the conversion.
impl From<Elements> for ElementSpec[src]
fn from(value: Elements) -> ElementSpec
Performs the conversion.
impl From<Vec<String>> for ElementSpec[src]
fn from(value: Vec<String>) -> ElementSpec
Performs the conversion.
impl Imports for ElementSpec[src]
fn imports<I>(&self, receiver: &mut I) where
I: ImportReceiver,
I: ImportReceiver,