pub struct SystemId(pub u32);
Expand description
Describes the ID of a solar system. Can be casted to from i32 or u32 using .into()
Example
use neweden::SystemId;
let system_id: SystemId = 30000142.into(); // returns a SystemId
assert_eq!(system_id, SystemId(30000142));
Tuple Fields§
§0: u32
Trait Implementations§
source§impl PartialEq<SystemId> for SystemId
impl PartialEq<SystemId> for SystemId
source§impl PartialOrd<SystemId> for SystemId
impl PartialOrd<SystemId> for SystemId
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 SystemId
impl Eq for SystemId
impl StructuralEq for SystemId
impl StructuralPartialEq for SystemId
Auto Trait Implementations§
impl RefUnwindSafe for SystemId
impl Send for SystemId
impl Sync for SystemId
impl Unpin for SystemId
impl UnwindSafe for SystemId
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.