pub struct SetNamedType {
pub id: u32,
pub name: Option<String>,
pub str_ref: Option<i32>,
}Expand description
Named tileset catalog entry such as [TERRAIN0] or [CROSSER0].
§Examples
let named = nwnrs_set::SetNamedType::default();
assert_eq!(named.id, 0);Fields§
§id: u32Entry id from the section suffix.
name: Option<String>Display or symbolic name.
str_ref: Option<i32>Optional dialog.tlk string reference.
Trait Implementations§
Source§impl Clone for SetNamedType
impl Clone for SetNamedType
Source§fn clone(&self) -> SetNamedType
fn clone(&self) -> SetNamedType
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 SetNamedType
impl Debug for SetNamedType
Source§impl Default for SetNamedType
impl Default for SetNamedType
Source§fn default() -> SetNamedType
fn default() -> SetNamedType
Returns the “default value” for a type. Read more
Source§impl PartialEq for SetNamedType
impl PartialEq for SetNamedType
impl Eq for SetNamedType
impl StructuralPartialEq for SetNamedType
Auto Trait Implementations§
impl Freeze for SetNamedType
impl RefUnwindSafe for SetNamedType
impl Send for SetNamedType
impl Sync for SetNamedType
impl Unpin for SetNamedType
impl UnsafeUnpin for SetNamedType
impl UnwindSafe for SetNamedType
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