pub struct UniqueItem {
pub name: &'static str,
pub lore: &'static str,
pub base_type: ItemType,
pub stats: Vec<(StatKind, f32)>,
pub glyph: char,
pub required_level: u32,
}Expand description
A hand-crafted unique item with fixed stats and lore.
Fields§
§name: &'static str§lore: &'static str§base_type: ItemType§stats: Vec<(StatKind, f32)>§glyph: char§required_level: u32Implementations§
Source§impl UniqueItem
impl UniqueItem
Trait Implementations§
Source§impl Clone for UniqueItem
impl Clone for UniqueItem
Source§fn clone(&self) -> UniqueItem
fn clone(&self) -> UniqueItem
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 moreAuto Trait Implementations§
impl Freeze for UniqueItem
impl RefUnwindSafe for UniqueItem
impl Send for UniqueItem
impl Sync for UniqueItem
impl Unpin for UniqueItem
impl UnsafeUnpin for UniqueItem
impl UnwindSafe for UniqueItem
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