Struct chemistru_elements::inner::InnerElement
source · pub struct InnerElement {
pub name: &'static str,
pub symbol: &'static str,
pub description: &'static str,
pub atomic_data: AtomicData,
pub state_data: StateData,
pub electron_data: ElectronData,
}Expand description
Detailed information about an element
Should be held behind avstatic reference where possible due to large size
Large size is due to being made able to be static or constant
Fields§
§name: &'static str§symbol: &'static str§description: &'static str§atomic_data: AtomicData§state_data: StateData§electron_data: ElectronDataTrait Implementations§
source§impl Clone for InnerElement
impl Clone for InnerElement
source§fn clone(&self) -> InnerElement
fn clone(&self) -> InnerElement
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 InnerElement
impl Debug for InnerElement
source§impl PartialEq for InnerElement
impl PartialEq for InnerElement
source§fn eq(&self, other: &InnerElement) -> bool
fn eq(&self, other: &InnerElement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for InnerElement
impl PartialOrd for InnerElement
source§fn partial_cmp(&self, other: &InnerElement) -> Option<Ordering>
fn partial_cmp(&self, other: &InnerElement) -> 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 moresource§impl ToTokens for InnerElement
impl ToTokens for InnerElement
source§fn to_tokens(&self, stream: &mut TokenStream)
fn to_tokens(&self, stream: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere Self: Sized,
impl StructuralPartialEq for InnerElement
Auto Trait Implementations§
impl RefUnwindSafe for InnerElement
impl Send for InnerElement
impl Sync for InnerElement
impl Unpin for InnerElement
impl UnwindSafe for InnerElement
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