Enum rbx_types::Variant [−][src]
#[non_exhaustive] pub enum Variant {}Show variants
Axes(Axes), BinaryString(BinaryString), Bool(bool), BrickColor(BrickColor), CFrame(CFrame), Color3(Color3), Color3uint8(Color3uint8), ColorSequence(ColorSequence), Content(Content), Enum(Enum), Faces(Faces), Float32(f32), Float64(f64), Int32(i32), Int64(i64), NumberRange(NumberRange), NumberSequence(NumberSequence), PhysicalProperties(PhysicalProperties), Ray(Ray), Rect(Rect), Ref(Ref), Region3(Region3), Region3int16(Region3int16), SharedString(SharedString), String(String), UDim(UDim), UDim2(UDim2), Vector2(Vector2), Vector2int16(Vector2int16), Vector3(Vector3), Vector3int16(Vector3int16), OptionalCFrame(Option<CFrame>),
Expand description
Represents any Roblox type. Useful for operating generically on Roblox instances.
Stability
New variants may be added to Variant
in minor releases. As
such, it is marked #[non_exhaustive]
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Axes(Axes)
BinaryString(BinaryString)
Bool(bool)
BrickColor(BrickColor)
CFrame(CFrame)
Color3(Color3)
Color3uint8(Color3uint8)
ColorSequence(ColorSequence)
Content(Content)
Enum(Enum)
Faces(Faces)
Float32(f32)
Float64(f64)
Int32(i32)
Int64(i64)
NumberRange(NumberRange)
NumberSequence(NumberSequence)
PhysicalProperties(PhysicalProperties)
Ray(Ray)
Rect(Rect)
Ref(Ref)
Region3(Region3)
Region3int16(Region3int16)
String(String)
UDim(UDim)
UDim2(UDim2)
Vector2(Vector2)
Vector2int16(Vector2int16)
Vector3(Vector3)
Vector3int16(Vector3int16)
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Variant
impl UnwindSafe for Variant
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V