Skip to main content

SettingValue

Trait SettingValue 

Source
pub trait SettingValue: Copy + 'static {
    const STUB: Self;
}
Expand description

Marker trait for types that can be used as Factorio mod setting values.

Required Associated Constants§

Source

const STUB: Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl SettingValue for &'static str

Source§

const STUB: Self = ""

Source§

impl SettingValue for bool

Source§

const STUB: Self = false

Source§

impl SettingValue for f32

Source§

const STUB: Self = 0.0

Source§

impl SettingValue for f64

Source§

const STUB: Self = 0.0

Source§

impl SettingValue for i8

Source§

const STUB: Self = 0

Source§

impl SettingValue for i16

Source§

const STUB: Self = 0

Source§

impl SettingValue for i32

Source§

const STUB: Self = 0

Source§

impl SettingValue for i64

Source§

const STUB: Self = 0

Source§

impl SettingValue for u8

Source§

const STUB: Self = 0

Source§

impl SettingValue for u16

Source§

const STUB: Self = 0

Source§

impl SettingValue for u32

Source§

const STUB: Self = 0

Source§

impl SettingValue for u64

Source§

const STUB: Self = 0

Source§

impl SettingValue for usize

Source§

const STUB: Self = 0

Implementors§