Struct gds::Element
[−]
[src]
pub struct Element { pub element_type: ElementType, pub parameters: Vec<ElementParameter>, }
A structure representing a element.
Elements are normally contained in a structure. Elements have a type and maybe some parameters.
Fields
element_type: ElementType
The type of the element.
parameters: Vec<ElementParameter>
Vector of parameters.
Methods
impl Element
[src]
fn new() -> Element
Creates new element.
The returned element is of type ElementType::None and has an empty set of parameters.
fn to_records(&self) -> Vec<Record>
Creates an vector of records.
Returns a vector of records which can be used for writing the content of the element to a file.
Trait Implementations
impl Debug for Element
[src]
impl Clone for Element
[src]
fn clone(&self) -> Element
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