Struct palmrs_database::info::category::ExtraInfoCategory
source · pub struct ExtraInfoCategory {
pub category_id: u8,
pub name: [u8; 16],
pub renamed: bool,
}
Expand description
Representation of an item category
Fields§
§category_id: u8
Category ID
Category IDs are in the range 0..15
, where category ID 0
(zero) is reserved for the
“Unfiled” category. This gives a maximum of 15 user-definable categories.
name: [u8; 16]
Category name
16-character null-padded string - the same format used by the DatabaseHeader
name
field.
renamed: bool
Has the category been renamed?
Implementations§
Trait Implementations§
source§impl Clone for ExtraInfoCategory
impl Clone for ExtraInfoCategory
source§fn clone(&self) -> ExtraInfoCategory
fn clone(&self) -> ExtraInfoCategory
Returns a copy 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 ExtraInfoCategory
impl Debug for ExtraInfoCategory
source§impl PartialEq<ExtraInfoCategory> for ExtraInfoCategory
impl PartialEq<ExtraInfoCategory> for ExtraInfoCategory
source§fn eq(&self, other: &ExtraInfoCategory) -> bool
fn eq(&self, other: &ExtraInfoCategory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ExtraInfoCategory
impl StructuralPartialEq for ExtraInfoCategory
Auto Trait Implementations§
impl RefUnwindSafe for ExtraInfoCategory
impl Send for ExtraInfoCategory
impl Sync for ExtraInfoCategory
impl Unpin for ExtraInfoCategory
impl UnwindSafe for ExtraInfoCategory
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