Enum roblox::data_type::Variant[][src]

pub enum Variant<'a, T: Default, U = Variant<'a, T, String>> {
Show 21 variants String(String), Boolean(bool), Vector3(Vector3), Vector2(Vector2), UDim2(UDim2), UDim(UDim), Color3(Color3), BrickColor(BrickColor), CFrame(CFrame), Int64(i64), Int32(i32), Float(f32), Double(f64), ColorSequence(ColorSequence), NumberSequence(NumberSequence), Instance(Instance<'a>), RBXScriptSignal(RBXScriptSignal<T>), RBXScriptConnection(RBXScriptConnection), Ray(Ray), Array(Array<U>), Dictionary(Dictionary),
}
Expand description

Any value

Variants

String

Tuple Fields of String

0: String
Boolean

Tuple Fields of Boolean

0: bool
Vector3

Tuple Fields of Vector3

0: Vector3
Vector2

Tuple Fields of Vector2

0: Vector2
UDim2

Tuple Fields of UDim2

0: UDim2
UDim

Tuple Fields of UDim

0: UDim
Color3

Tuple Fields of Color3

0: Color3
BrickColor

Tuple Fields of BrickColor

0: BrickColor
CFrame

Tuple Fields of CFrame

0: CFrame
Int64

Tuple Fields of Int64

0: i64
Int32

Tuple Fields of Int32

0: i32
Float

Tuple Fields of Float

0: f32
Double

Tuple Fields of Double

0: f64
ColorSequence

Tuple Fields of ColorSequence

0: ColorSequence
NumberSequence

Tuple Fields of NumberSequence

0: NumberSequence
Instance

Tuple Fields of Instance

0: Instance<'a>
RBXScriptSignal

Tuple Fields of RBXScriptSignal

0: RBXScriptSignal<T>
RBXScriptConnection

Tuple Fields of RBXScriptConnection

0: RBXScriptConnection
Ray

Tuple Fields of Ray

0: Ray
Array

Tuple Fields of Array

0: Array<U>
Dictionary

Tuple Fields of Dictionary

0: Dictionary

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

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.