pub struct Atom { /* private fields */ }
Implementations§
Source§impl Atom
impl Atom
pub fn set_electrons(self, amount: u32)
pub fn add_electrons(self, amount: u32)
pub fn sub_electrons(self, amount: u32)
pub fn amount_electrons(self) -> u32
pub fn set_neutrons(self, amount: u32)
pub fn add_neutrons(self, amount: u32)
pub fn sub_neutrons(self, amount: u32)
pub fn amount_neutrons(self) -> u32
pub fn amount_protons(self) -> u32
Auto Trait Implementations§
impl Freeze for Atom
impl RefUnwindSafe for Atom
impl Send for Atom
impl Sync for Atom
impl Unpin for Atom
impl UnwindSafe for Atom
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