pub struct OrbitalElement { /* private fields */ }Implementations§
Source§impl OrbitalElement
impl OrbitalElement
Sourcepub fn new(
kind: OrbitalElementKind,
value: OrbitalElementValue,
) -> Result<Self, OrbitalElementValueError>
pub fn new( kind: OrbitalElementKind, value: OrbitalElementValue, ) -> Result<Self, OrbitalElementValueError>
Creates an orbital element with domain validation for constrained element kinds.
§Errors
Returns OrbitalElementValueError::NegativeEccentricity for negative eccentricity values,
or OrbitalElementValueError::InvalidInclination for inclinations outside 0.0..=180.0.
pub const fn kind(&self) -> &OrbitalElementKind
pub const fn value(&self) -> &OrbitalElementValue
Trait Implementations§
Source§impl Clone for OrbitalElement
impl Clone for OrbitalElement
Source§fn clone(&self) -> OrbitalElement
fn clone(&self) -> OrbitalElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrbitalElement
impl Debug for OrbitalElement
Source§impl PartialEq for OrbitalElement
impl PartialEq for OrbitalElement
Source§fn eq(&self, other: &OrbitalElement) -> bool
fn eq(&self, other: &OrbitalElement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OrbitalElement
Auto Trait Implementations§
impl Freeze for OrbitalElement
impl RefUnwindSafe for OrbitalElement
impl Send for OrbitalElement
impl Sync for OrbitalElement
impl Unpin for OrbitalElement
impl UnsafeUnpin for OrbitalElement
impl UnwindSafe for OrbitalElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more