Struct codeviz_python::ClassSpec
[−]
[src]
pub struct ClassSpec { pub name: String, pub decorators: Vec<DecoratorSpec>, pub elements: Elements, pub extends: Vec<Name>, }
Fields
name: String
decorators: Vec<DecoratorSpec>
elements: Elements
extends: Vec<Name>
Methods
impl ClassSpec
[src]
fn new(name: &str) -> ClassSpec
[src]
fn push_decorator<D>(&mut self, decorator: D) where
D: Into<DecoratorSpec>,
[src]
D: Into<DecoratorSpec>,
fn push<E>(&mut self, element: E) where
E: Into<Element>,
[src]
E: Into<Element>,
fn extends<N>(&mut self, name: N) where
N: Into<Name>,
[src]
N: Into<Name>,
Trait Implementations
impl Debug for ClassSpec
[src]
impl Clone for ClassSpec
[src]
fn clone(&self) -> ClassSpec
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Imports for ClassSpec
[src]
fn imports<I>(&self, receiver: &mut I) where
I: ImportReceiver,
[src]
I: ImportReceiver,