Enum livemod::BuiltinRepr[][src]

pub enum BuiltinRepr {
    SignedSlider {
        storage_min: i64,
        storage_max: i64,
        suggested_min: i64,
        suggested_max: i64,
    },
    UnsignedSlider {
        storage_min: u64,
        storage_max: u64,
        suggested_min: u64,
        suggested_max: u64,
    },
    FloatSlider {
        storage_min: f64,
        storage_max: f64,
        suggested_min: f64,
        suggested_max: f64,
    },
    SignedInteger {
        min: i64,
        max: i64,
    },
    UnsignedInteger {
        min: u64,
        max: u64,
    },
    Float {
        min: f64,
        max: f64,
    },
    Bool,
    String {
        multiline: bool,
    },
}
Expand description

Convenience type to create builtin livemod reprs.

Variants

SignedSlider

A signed integer with suggested bounds.

Maps to livemod:sint

Fields of SignedSlider

storage_min: i64storage_max: i64suggested_min: i64suggested_max: i64
UnsignedSlider

An unsigned integer with suggested bounds.

Maps to livemod:uint

Fields of UnsignedSlider

storage_min: u64storage_max: u64suggested_min: u64suggested_max: u64
FloatSlider

A floating-point number with suggested bounds

Maps to livemod:float

Fields of FloatSlider

storage_min: f64storage_max: f64suggested_min: f64suggested_max: f64
SignedInteger

A signed integer without suggested bounds.

Maps to livemod:sint

Fields of SignedInteger

min: i64max: i64
UnsignedInteger

An unsigned integer without suggested bounds

Maps to livemod:uint

Fields of UnsignedInteger

min: u64max: u64
Float

A floating-point number without suggested bounds

Maps to livemod:float

Fields of Float

min: f64max: f64
Bool

A boolean

Maps to livemod:bool

String

A strin

Maps to livemod:string

Fields of String

multiline: bool

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.