pub struct StarMetadata { /* private fields */ }Expand description
Factual metadata for a represented star.
Implementations§
Source§impl StarMetadata
impl StarMetadata
Sourcepub const fn new(
key: &'static str,
chinese_name: &'static str,
name: StarName,
kind: StarKind,
) -> Self
pub const fn new( key: &'static str, chinese_name: &'static str, name: StarName, kind: StarKind, ) -> Self
Creates factual star metadata.
Sourcepub const fn chinese_name(&self) -> &'static str
pub const fn chinese_name(&self) -> &'static str
Returns the Chinese display name.
Sourcepub const fn category(&self) -> StarCategory
pub const fn category(&self) -> StarCategory
Returns the coarse palace grouping.
Trait Implementations§
Source§impl Clone for StarMetadata
impl Clone for StarMetadata
Source§fn clone(&self) -> StarMetadata
fn clone(&self) -> StarMetadata
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 StarMetadata
Source§impl Debug for StarMetadata
impl Debug for StarMetadata
impl Eq for StarMetadata
Source§impl Hash for StarMetadata
impl Hash for StarMetadata
Source§impl PartialEq for StarMetadata
impl PartialEq for StarMetadata
Source§fn eq(&self, other: &StarMetadata) -> bool
fn eq(&self, other: &StarMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StarMetadata
Auto Trait Implementations§
impl Freeze for StarMetadata
impl RefUnwindSafe for StarMetadata
impl Send for StarMetadata
impl Sync for StarMetadata
impl Unpin for StarMetadata
impl UnsafeUnpin for StarMetadata
impl UnwindSafe for StarMetadata
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