[][src]Struct sgp4_rs::TwoLineElement

pub struct TwoLineElement { /* fields omitted */ }

Implementations

impl TwoLineElement[src]

pub fn new(line1: &str, line2: &str) -> Result<TwoLineElement, Error>[src]

Create a validated TwoLineElement from a string.

pub fn from_lines(combined_lines: &str) -> Result<TwoLineElement, Error>[src]

Create a TwoLineElement from a string containing both lines, and optionally a header line.

pub fn epoch(&self) -> Result<DateTime<Utc>, Error>[src]

Get the epoch of a TwoLineElement.

pub fn propagate_to(&self, t: DateTime<Utc>) -> Result<StateVector, Error>[src]

Propagate a TwoLineElement to the given time to obtain a state vector for the object.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.