pub struct SetPrimaryRule {
pub id: u32,
pub placed: Option<String>,
pub placed_height: Option<i32>,
pub adjacent: Option<String>,
pub adjacent_height: Option<i32>,
pub changed: Option<String>,
pub changed_height: Option<i32>,
}Expand description
Parsed [PRIMARY RULEN] section.
§Examples
let rule = nwnrs_set::SetPrimaryRule::default();
assert_eq!(rule.id, 0);Fields§
§id: u32Rule id from the section suffix.
placed: Option<String>Terrain tag for the placed tile.
placed_height: Option<i32>Height for the placed terrain.
adjacent: Option<String>Terrain tag for the adjacent tile.
adjacent_height: Option<i32>Height for the adjacent terrain.
changed: Option<String>Terrain tag after applying the rule.
changed_height: Option<i32>Height after applying the rule.
Trait Implementations§
Source§impl Clone for SetPrimaryRule
impl Clone for SetPrimaryRule
Source§fn clone(&self) -> SetPrimaryRule
fn clone(&self) -> SetPrimaryRule
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 SetPrimaryRule
impl Debug for SetPrimaryRule
Source§impl Default for SetPrimaryRule
impl Default for SetPrimaryRule
Source§fn default() -> SetPrimaryRule
fn default() -> SetPrimaryRule
Returns the “default value” for a type. Read more
Source§impl PartialEq for SetPrimaryRule
impl PartialEq for SetPrimaryRule
impl Eq for SetPrimaryRule
impl StructuralPartialEq for SetPrimaryRule
Auto Trait Implementations§
impl Freeze for SetPrimaryRule
impl RefUnwindSafe for SetPrimaryRule
impl Send for SetPrimaryRule
impl Sync for SetPrimaryRule
impl Unpin for SetPrimaryRule
impl UnsafeUnpin for SetPrimaryRule
impl UnwindSafe for SetPrimaryRule
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