Enum rbx_types::VariantType
source · #[non_exhaustive]pub enum VariantType {
Show 38 variants
Axes,
BinaryString,
Bool,
BrickColor,
CFrame,
Color3,
Color3uint8,
ColorSequence,
Content,
Enum,
Faces,
Float32,
Float64,
Int32,
Int64,
NumberRange,
NumberSequence,
PhysicalProperties,
Ray,
Rect,
Ref,
Region3,
Region3int16,
SharedString,
String,
UDim,
UDim2,
Vector2,
Vector2int16,
Vector3,
Vector3int16,
OptionalCFrame,
Tags,
Attributes,
Font,
UniqueId,
MaterialColors,
SecurityCapabilities,
}
Expand description
Represents any type that can be held in a Variant
.
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
BinaryString
Bool
BrickColor
CFrame
Color3
Color3uint8
ColorSequence
Content
Enum
Faces
Float32
Float64
Int32
Int64
NumberRange
NumberSequence
PhysicalProperties
Ray
Rect
Ref
Region3
Region3int16
String
UDim
UDim2
Vector2
Vector2int16
Vector3
Vector3int16
OptionalCFrame
Tags
Attributes
Font
UniqueId
MaterialColors
SecurityCapabilities
Trait Implementations§
source§impl Clone for VariantType
impl Clone for VariantType
source§fn clone(&self) -> VariantType
fn clone(&self) -> VariantType
Returns a copy 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 VariantType
impl Debug for VariantType
source§impl Hash for VariantType
impl Hash for VariantType
source§impl PartialEq for VariantType
impl PartialEq for VariantType
source§fn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VariantType
impl Eq for VariantType
impl StructuralEq for VariantType
impl StructuralPartialEq for VariantType
Auto Trait Implementations§
impl RefUnwindSafe for VariantType
impl Send for VariantType
impl Sync for VariantType
impl Unpin for VariantType
impl UnwindSafe for VariantType
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