Skip to main content

HasItemDefindex

Trait HasItemDefindex 

Source
pub trait HasItemDefindex: Sized {
    // Required methods
    fn defindex(&self) -> u32;
    fn from_defindex(defindex: u32) -> Option<Self>;
}
Expand description

Definitions which are associated with an item defindex.

Required Methods§

Source

fn defindex(&self) -> u32

Gets the defindex.

Source

fn from_defindex(defindex: u32) -> Option<Self>

Converts a defindex into its related item, if it exists.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§