Struct codeviz::python::MethodSpec
[−]
[src]
pub struct MethodSpec {
pub name: String,
pub decorators: Vec<DecoratorSpec>,
pub arguments: Vec<Statement>,
pub elements: Elements,
}Fields
name: String
decorators: Vec<DecoratorSpec>
arguments: Vec<Statement>
elements: Elements
Methods
impl MethodSpec[src]
fn new(name: &str) -> MethodSpec
fn push_decorator<D>(&mut self, decorator: D) where
D: Into<DecoratorSpec>,
D: Into<DecoratorSpec>,
fn push_argument<S>(&mut self, argument: S) where
S: Into<Statement>,
S: Into<Statement>,
fn push<E>(&mut self, element: E) where
E: Into<ElementSpec>,
E: Into<ElementSpec>,
Trait Implementations
impl Debug for MethodSpec[src]
impl Clone for MethodSpec[src]
fn clone(&self) -> MethodSpec
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