Enum citi::Keyword[][src]

pub enum Keyword {
Show variants CitiFile { version: String, }, Name(String), Var { name: String, format: String, length: usize, }, Constant { name: String, value: String, }, Device { name: String, value: String, }, SegListBegin, SegItem { first: f64, last: f64, number: usize, }, SegListEnd, VarListBegin, VarListItem(f64), VarListEnd, Data { name: String, format: String, }, DataPair { real: f64, imag: f64, }, Begin, End, Comment(String),
}
Expand description

Representation of the per-line keywords

A vector of these keywords represents a file.

Variants

CitiFile

CitiFile version e.g. A.01.01

Show fields

Fields of CitiFile

version: String
Name(String)

Name. Single word with no spaces. e.g. CAL_SET

Var

Independent variable with name, format, and number of samples. e.g. VAR FREQ MAG 201

Show fields

Fields of Var

name: Stringformat: Stringlength: usize
Constant

Constant with name and value. e.g. CONSTANT A A_THING

Show fields

Fields of Constant

name: Stringvalue: String
Device

New Device

Show fields

Fields of Device

name: Stringvalue: String
SegListBegin

Beginning of independent variable segments

SegItem

An item in a SEG list

Show fields

Fields of SegItem

first: f64last: f64number: usize
SegListEnd

End of independent variable segments

VarListBegin

Beginning of independent variable list

VarListItem(f64)

Item in a var list

VarListEnd

End of independent variable list

Data

Define a data array. e.g. DATA S[1,1] RI

Show fields

Fields of Data

name: Stringformat: String
DataPair

Real, Imaginary pair in data

Show fields

Fields of DataPair

real: f64imag: f64
Begin

Begin data array

End

End data array

Comment(String)

Comment (non-standard)

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.