Struct neweden::Lightyears
source · pub struct Lightyears(pub f64);
Tuple Fields§
§0: f64
Trait Implementations§
source§impl Add<Lightyears> for Lightyears
impl Add<Lightyears> for Lightyears
source§impl Clone for Lightyears
impl Clone for Lightyears
source§fn clone(&self) -> Lightyears
fn clone(&self) -> Lightyears
Returns a copy 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 Lightyears
impl Debug for Lightyears
source§impl From<Lightyears> for Meters
impl From<Lightyears> for Meters
source§fn from(other: Lightyears) -> Self
fn from(other: Lightyears) -> Self
Converts to this type from the input type.
source§impl Into<Lightyears> for BridgeType
impl Into<Lightyears> for BridgeType
source§fn into(self) -> Lightyears
fn into(self) -> Lightyears
Converts this type into the (usually inferred) input type.
source§impl Into<Lightyears> for JumpdriveShip
impl Into<Lightyears> for JumpdriveShip
source§fn into(self) -> Lightyears
fn into(self) -> Lightyears
Converts this type into the (usually inferred) input type.
source§impl Mul<Lightyears> for Lightyears
impl Mul<Lightyears> for Lightyears
source§impl Mul<f64> for Lightyears
impl Mul<f64> for Lightyears
source§impl PartialEq<Lightyears> for Lightyears
impl PartialEq<Lightyears> for Lightyears
source§fn eq(&self, other: &Lightyears) -> bool
fn eq(&self, other: &Lightyears) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Lightyears> for Lightyears
impl PartialOrd<Lightyears> for Lightyears
source§fn partial_cmp(&self, other: &Lightyears) -> Option<Ordering>
fn partial_cmp(&self, other: &Lightyears) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Lightyears
impl StructuralPartialEq for Lightyears
Auto Trait Implementations§
impl RefUnwindSafe for Lightyears
impl Send for Lightyears
impl Sync for Lightyears
impl Unpin for Lightyears
impl UnwindSafe for Lightyears
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