pub struct PackedGalacticAddress(pub u64);Expand description
Galactic address in packed form — hex string "0x..." or bare integer.
Used for bases and discoveries where the address is a single value.
Tuple Fields§
§0: u64Implementations§
Source§impl PackedGalacticAddress
impl PackedGalacticAddress
Sourcepub fn to_galactic_address(&self, reality_index: u8) -> GalacticAddress
pub fn to_galactic_address(&self, reality_index: u8) -> GalacticAddress
Convert to the core GalacticAddress type.
Trait Implementations§
Source§impl Clone for PackedGalacticAddress
impl Clone for PackedGalacticAddress
Source§fn clone(&self) -> PackedGalacticAddress
fn clone(&self) -> PackedGalacticAddress
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 PackedGalacticAddress
impl Debug for PackedGalacticAddress
Source§impl Default for PackedGalacticAddress
impl Default for PackedGalacticAddress
Source§fn default() -> PackedGalacticAddress
fn default() -> PackedGalacticAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackedGalacticAddress
impl<'de> Deserialize<'de> for PackedGalacticAddress
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PackedGalacticAddress
impl Serialize for PackedGalacticAddress
impl Copy for PackedGalacticAddress
Auto Trait Implementations§
impl Freeze for PackedGalacticAddress
impl RefUnwindSafe for PackedGalacticAddress
impl Send for PackedGalacticAddress
impl Sync for PackedGalacticAddress
impl Unpin for PackedGalacticAddress
impl UnsafeUnpin for PackedGalacticAddress
impl UnwindSafe for PackedGalacticAddress
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