TLE

Struct TLE 

Source
pub struct TLE {
Show 17 fields pub name: String, pub norad: String, pub classification: char, pub int_desig: String, pub epoch_year: i32, pub epoch_day: f64, pub dn_o2: f64, pub ddn_o6: f64, pub bstar: f64, pub set_num: u32, pub inc: f64, pub raan: f64, pub ecc: f64, pub argp: f64, pub M: f64, pub n: f64, pub rev_num: u32,
}
Expand description

Structure representing a single TLE.

A two-line element set (TLE) is a data format encoding a list of orbital elements of an Earth-orbiting object at a given point in time, the epoch.

All the fields parsed from the TLE are expressed in the same units that are used in the TLE format.

Fields§

§name: String

Name of the object.

§norad: String

Norad number.

§classification: char

Classification (U: unclassified, C: classified, S: secret)

§int_desig: String

International designator (year, launch number, piece).

§epoch_year: i32

Year of the epoch.

§epoch_day: f64

Day of the year plus fraction of the day.

§dn_o2: f64

First time-derivative of the mean motion divided by 2.

§ddn_o6: f64

Second time-derivative of the mean motion divided by 6.

§bstar: f64

BSTAR coefficient (Wikipedia).

§set_num: u32

Element set number.

§inc: f64

Inclination.

§raan: f64

Right ascension of the ascending node (Wikipedia).

§ecc: f64

Eccentricity (0 ≤ ecc < 1).

§argp: f64

Argument of perigee.

§M: f64

Mean anomaly.

§n: f64

Mean motion.

§rev_num: u32

Revolution number.

Trait Implementations§

Source§

impl Debug for TLE

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TLE

Source§

fn default() -> TLE

Returns the “default value” for a type. Read more
Source§

impl FromStr for TLE

Available on crate feature nom only.
Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<TLE, Error>

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

impl PartialEq for TLE

Source§

fn eq(&self, other: &TLE) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for TLE

Auto Trait Implementations§

§

impl Freeze for TLE

§

impl RefUnwindSafe for TLE

§

impl Send for TLE

§

impl Sync for TLE

§

impl Unpin for TLE

§

impl UnwindSafe for TLE

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.