pub struct KnownStarMetadata { /* private fields */ }Expand description
Metadata for an upstream iztro runtime star name known to this crate.
Implementations§
Source§impl KnownStarMetadata
impl KnownStarMetadata
Sourcepub const fn new(
key: &'static str,
upstream_key: &'static str,
chinese_name: &'static str,
name: StarName,
family: KnownStarFamily,
kind: Option<StarKind>,
) -> Self
pub const fn new( key: &'static str, upstream_key: &'static str, chinese_name: &'static str, name: StarName, family: KnownStarFamily, kind: Option<StarKind>, ) -> Self
Creates known upstream runtime star metadata.
Sourcepub const fn upstream_key(&self) -> &'static str
pub const fn upstream_key(&self) -> &'static str
Returns the upstream iztro locale/runtime key.
Sourcepub const fn chinese_name(&self) -> &'static str
pub const fn chinese_name(&self) -> &'static str
Returns the Chinese display name.
Sourcepub const fn family(&self) -> KnownStarFamily
pub const fn family(&self) -> KnownStarFamily
Returns the upstream runtime inventory family.
Sourcepub const fn kind(&self) -> Option<StarKind>
pub const fn kind(&self) -> Option<StarKind>
Returns the iztro-compatible fine star type, if upstream assigns one.
Sourcepub const fn category(&self) -> Option<StarCategory>
pub const fn category(&self) -> Option<StarCategory>
Returns the coarse palace grouping, if this known star has a fine type.
Trait Implementations§
Source§impl Clone for KnownStarMetadata
impl Clone for KnownStarMetadata
Source§fn clone(&self) -> KnownStarMetadata
fn clone(&self) -> KnownStarMetadata
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 moreimpl Copy for KnownStarMetadata
Source§impl Debug for KnownStarMetadata
impl Debug for KnownStarMetadata
impl Eq for KnownStarMetadata
Source§impl Hash for KnownStarMetadata
impl Hash for KnownStarMetadata
Source§impl PartialEq for KnownStarMetadata
impl PartialEq for KnownStarMetadata
Source§fn eq(&self, other: &KnownStarMetadata) -> bool
fn eq(&self, other: &KnownStarMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KnownStarMetadata
Auto Trait Implementations§
impl Freeze for KnownStarMetadata
impl RefUnwindSafe for KnownStarMetadata
impl Send for KnownStarMetadata
impl Sync for KnownStarMetadata
impl Unpin for KnownStarMetadata
impl UnsafeUnpin for KnownStarMetadata
impl UnwindSafe for KnownStarMetadata
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