pub struct UniqueCraftIndex(pub u32);
Expand description
Represents the “unique_craft_index” attribute.
Tuple Fields§
§0: u32
Trait Implementations§
Source§impl AsRef<u32> for UniqueCraftIndex
impl AsRef<u32> for UniqueCraftIndex
Source§impl Attribute for UniqueCraftIndex
impl Attribute for UniqueCraftIndex
Source§const USES_FLOAT_VALUE: bool = false
const USES_FLOAT_VALUE: bool = false
Not part of the schema. Read more
Source§const ATTRIBUTE: AttributeDef
const ATTRIBUTE: AttributeDef
The attribute definition.
Source§fn attribute_value(&self) -> AttributeValue
fn attribute_value(&self) -> AttributeValue
Gets the attribute value.
Source§fn attribute_float_value(&self) -> Option<f32>
fn attribute_float_value(&self) -> Option<f32>
Gets the attribute float value.
Source§impl Borrow<u32> for UniqueCraftIndex
impl Borrow<u32> for UniqueCraftIndex
Source§impl Clone for UniqueCraftIndex
impl Clone for UniqueCraftIndex
Source§fn clone(&self) -> UniqueCraftIndex
fn clone(&self) -> UniqueCraftIndex
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 UniqueCraftIndex
impl Debug for UniqueCraftIndex
Source§impl Default for UniqueCraftIndex
impl Default for UniqueCraftIndex
Source§fn default() -> UniqueCraftIndex
fn default() -> UniqueCraftIndex
Returns the “default value” for a type. Read more
Source§impl Deref for UniqueCraftIndex
impl Deref for UniqueCraftIndex
Source§impl From<&u32> for UniqueCraftIndex
impl From<&u32> for UniqueCraftIndex
Source§impl From<UniqueCraftIndex> for ItemAttribute
impl From<UniqueCraftIndex> for ItemAttribute
Source§fn from(val: UniqueCraftIndex) -> Self
fn from(val: UniqueCraftIndex) -> Self
Converts to this type from the input type.
Source§impl From<u32> for UniqueCraftIndex
impl From<u32> for UniqueCraftIndex
Source§impl Hash for UniqueCraftIndex
impl Hash for UniqueCraftIndex
Source§impl PartialEq for UniqueCraftIndex
impl PartialEq for UniqueCraftIndex
Source§impl TryFromIntAttributeValue for UniqueCraftIndex
impl TryFromIntAttributeValue for UniqueCraftIndex
Source§fn try_from_attribute_value(v: AttributeValue) -> Option<Self>
fn try_from_attribute_value(v: AttributeValue) -> Option<Self>
Attempts conversion from an attribute value.
Source§fn try_from_attribute_float_value(v: f32) -> Option<Self>
fn try_from_attribute_float_value(v: f32) -> Option<Self>
Attempts conversion from an attribute float value.
impl Copy for UniqueCraftIndex
impl Eq for UniqueCraftIndex
impl StructuralPartialEq for UniqueCraftIndex
Auto Trait Implementations§
impl Freeze for UniqueCraftIndex
impl RefUnwindSafe for UniqueCraftIndex
impl Send for UniqueCraftIndex
impl Sync for UniqueCraftIndex
impl Unpin for UniqueCraftIndex
impl UnwindSafe for UniqueCraftIndex
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