pub struct RightAscension(/* private fields */);Implementations§
Source§impl RightAscension
impl RightAscension
Sourcepub fn from_degrees(value: f64) -> Result<Self, AstronomicalCoordinateError>
pub fn from_degrees(value: f64) -> Result<Self, AstronomicalCoordinateError>
Creates right ascension from finite degrees within 0.0..=360.0.
§Errors
Returns AstronomicalCoordinateError::NonFiniteRightAscension when value is not finite,
or AstronomicalCoordinateError::InvalidRightAscension when it is outside 0.0..=360.0.
pub const fn degrees(self) -> f64
Trait Implementations§
Source§impl Clone for RightAscension
impl Clone for RightAscension
Source§fn clone(&self) -> RightAscension
fn clone(&self) -> RightAscension
Returns a duplicate of the value. Read more
1.0.0 · 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 RightAscension
impl Debug for RightAscension
Source§impl Display for RightAscension
impl Display for RightAscension
Source§impl PartialEq for RightAscension
impl PartialEq for RightAscension
Source§impl PartialOrd for RightAscension
impl PartialOrd for RightAscension
impl Copy for RightAscension
impl StructuralPartialEq for RightAscension
Auto Trait Implementations§
impl Freeze for RightAscension
impl RefUnwindSafe for RightAscension
impl Send for RightAscension
impl Sync for RightAscension
impl Unpin for RightAscension
impl UnsafeUnpin for RightAscension
impl UnwindSafe for RightAscension
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