pub struct CemeteryTemplate {
pub tombstone: usize,
pub life: f32,
pub range: f32,
}Expand description
CemeteryDescription (the tombstone template) with its TombstoneDescription: a grave lasts `(life
- RandFloat × range)` × 300 s.
Fields§
§tombstone: usizeThe tombstone template.
life: f32How long a grave lasts, in months of 300 seconds.
range: f32The random part of how long it lasts.
Trait Implementations§
Source§impl Clone for CemeteryTemplate
impl Clone for CemeteryTemplate
Source§fn clone(&self) -> CemeteryTemplate
fn clone(&self) -> CemeteryTemplate
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 CemeteryTemplate
Source§impl Debug for CemeteryTemplate
impl Debug for CemeteryTemplate
Source§impl PartialEq for CemeteryTemplate
impl PartialEq for CemeteryTemplate
impl StructuralPartialEq for CemeteryTemplate
Auto Trait Implementations§
impl Freeze for CemeteryTemplate
impl RefUnwindSafe for CemeteryTemplate
impl Send for CemeteryTemplate
impl Sync for CemeteryTemplate
impl Unpin for CemeteryTemplate
impl UnsafeUnpin for CemeteryTemplate
impl UnwindSafe for CemeteryTemplate
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