[][src]Struct reefast::dh::Attr

pub struct Attr {
    pub id: ReeInt,
    pub stackable: bool,
    pub high_is_good: bool,
    pub default_value: ReeFloat,
}

Dogma attribute data.

Fields

id: ReeInt

Dogma attribute ID.

stackable: bool

Defines if modifications applied to the attribute's values stack with penalty (false) or not (true).

high_is_good: bool

Defines if higher value of the attribute is considered good or not.

default_value: ReeFloat

Default value of the attribute, if not provided by an item type.

Implementations

impl Attr[src]

pub fn new(
    id: ReeInt,
    stackable: bool,
    high_is_good: bool,
    default_value: ReeFloat
) -> Attr
[src]

Make a new dogma attribute out of passed data.

Trait Implementations

impl Debug for Attr[src]

Auto Trait Implementations

impl RefUnwindSafe for Attr

impl Send for Attr

impl Sync for Attr

impl Unpin for Attr

impl UnwindSafe for Attr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.