pub struct IesFile { /* private fields */ }

Implementations

Returns a new instance of an IES file with default values.

A wrapper around the parsing code, that opens a file and reads it.

Attempts to parse an input file.

Parses the keywords section of the file.

This function reads the properties from the file into the data structure.

Checks to see that the vertical angles are valid according to the IES standard, The valid configurations are:

  • Completely in the bottom hemisphere: first angles and 0 degrees and 90 degress respectively.
  • Completely in the top hemisphere: first angles and 90 degrees and 180 degress respectively.
  • Otherwise: first angles and 0 degrees and 180 degress respectively.

Checks to see that the horizontal angles are valid according to the IES standard. In this case, the angles are mainly used to defined symmetries, the rules are:

  • First angle must always be 0.0.
  • If the last values is 0.0, the distribution is axially symmetric.
  • If the last value is 90.0 degress, the distribution is symmetric in each quadrant.
  • If the last value is 180.0 degress, the distribution is symmetric about a vertical plane.
  • If the last value is greater than 180.0 and less than or equal to 360.0, no lateral symmetries.
  • Hence, the valid last values are: 0.0, 90.0, 180.0 - 360.0.

Writes the currently loaded EULUMDAT file to a specified file. The written value is determined by LdtFile::to_string(&self).

Outputs the keywords in the file to a string.

Get the type and properties of the luminous opening.

Gets the planes from this object.

Get the planes from a Type A photometry IES file.

Get the planes from a Type A photometry IES file.

Get the planes from a Type C photometry IES file.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts the given value to a String. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.