pub struct ShieldPool {
pub current: u16,
pub max: u16,
}Expand description
Replicated state for a ship’s shield pool.
Fields§
§current: u16§max: u16Trait Implementations§
Source§impl Clone for ShieldPool
impl Clone for ShieldPool
Source§fn clone(&self) -> ShieldPool
fn clone(&self) -> ShieldPool
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 ShieldPool
impl Debug for ShieldPool
Source§impl Default for ShieldPool
impl Default for ShieldPool
Source§fn default() -> ShieldPool
fn default() -> ShieldPool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShieldPool
impl<'de> Deserialize<'de> for ShieldPool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ShieldPool
impl Serialize for ShieldPool
impl Copy for ShieldPool
Auto Trait Implementations§
impl Freeze for ShieldPool
impl RefUnwindSafe for ShieldPool
impl Send for ShieldPool
impl Sync for ShieldPool
impl Unpin for ShieldPool
impl UnsafeUnpin for ShieldPool
impl UnwindSafe for ShieldPool
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