pub(crate) struct Used {
pub(crate) loot_tables: HashSet<String>,
pub(crate) loadouts: HashSet<String>,
pub(crate) items: HashSet<String>,
}
Fields§
§loot_tables: HashSet<String>
§loadouts: HashSet<String>
§items: HashSet<String>
Implementations§
Source§impl Used
impl Used
pub(crate) fn use_item_spec(&mut self, i: &ItemSpec)
pub(crate) fn use_body(&mut self, body: &Body)
pub(crate) fn use_item(&mut self, s: impl Into<String>)
pub(crate) fn use_loot_table( &mut self, loot_table: &Lottery<LootSpec<impl AsRef<str>>>, )
pub(crate) fn use_loot_spec(&mut self, loot_spec: &LootSpec<impl AsRef<str>>)
pub(crate) fn use_loadout_base(&mut self, base: &Base)
pub(crate) fn use_loadout_asset(&mut self, asset: &str)
pub(crate) fn use_loadout_hands(&mut self, hands: &Hands)
pub(crate) fn use_loadout_spec(&mut self, spec: &LoadoutSpec)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Used
impl RefUnwindSafe for Used
impl Send for Used
impl Sync for Used
impl Unpin for Used
impl UnwindSafe for Used
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<Context> SubContext<Context> for Context
impl<Context> SubContext<Context> for Context
fn sub_context(self) -> Context
§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.