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

The type of the element.

Vector of parameters.

Methods

impl Element
[src]

Creates new element.

The returned element is of type ElementType::None and has an empty set of parameters.

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]

Formats the value using the given formatter.

impl Clone for Element
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more