[][src]Enum rbx_dom_weak::RbxValue

pub enum RbxValue {
    BinaryString {
        value: Vec<u8>,
    },
    BrickColor {
        value: BrickColor,
    },
    Bool {
        value: bool,
    },
    CFrame {
        value: [f32; 12],
    },
    Color3 {
        value: [f32; 3],
    },
    Color3uint8 {
        value: [u8; 3],
    },
    ColorSequence {
        value: ColorSequence,
    },
    Content {
        value: String,
    },
    Enum {
        value: u32,
    },
    Float32 {
        value: f32,
    },
    Float64 {
        value: f64,
    },
    Int32 {
        value: i32,
    },
    Int64 {
        value: i64,
    },
    NumberRange {
        value: (f32, f32),
    },
    NumberSequence {
        value: NumberSequence,
    },
    PhysicalProperties {
        value: Option<PhysicalProperties>,
    },
    Ray {
        value: Ray,
    },
    Rect {
        value: Rect,
    },
    Ref {
        value: Option<RbxId>,
    },
    String {
        value: String,
    },
    UDim {
        value: (f32, i32),
    },
    UDim2 {
        value: (f32, i32, f32, i32),
    },
    Vector2 {
        value: [f32; 2],
    },
    Vector2int16 {
        value: [i16; 2],
    },
    Vector3 {
        value: [f32; 3],
    },
    Vector3int16 {
        value: [i16; 3],
    },
    // some variants omitted
}

Represents a value that can be assigned to the properties of an instance.

Variants

BinaryString

Fields of BinaryString

value: Vec<u8>
BrickColor

Fields of BrickColor

value: BrickColor
Bool

Fields of Bool

value: bool
CFrame

Fields of CFrame

value: [f32; 12]
Color3

Fields of Color3

value: [f32; 3]
Color3uint8

Fields of Color3uint8

value: [u8; 3]
ColorSequence

Fields of ColorSequence

value: ColorSequence
Content

Fields of Content

value: String
Enum

Fields of Enum

value: u32
Float32

Fields of Float32

value: f32
Float64

Fields of Float64

value: f64
Int32

Fields of Int32

value: i32
Int64

Fields of Int64

value: i64
NumberRange

Fields of NumberRange

value: (f32, f32)
NumberSequence

Fields of NumberSequence

value: NumberSequence
PhysicalProperties

Fields of PhysicalProperties

value: Option<PhysicalProperties>
Ray

Fields of Ray

value: Ray
Rect

Fields of Rect

value: Rect
Ref

Fields of Ref

value: Option<RbxId>
String

Fields of String

value: String
UDim

Fields of UDim

value: (f32, i32)
UDim2

Fields of UDim2

value: (f32, i32, f32, i32)
Vector2

Fields of Vector2

value: [f32; 2]
Vector2int16

Fields of Vector2int16

value: [i16; 2]
Vector3

Fields of Vector3

value: [f32; 3]
Vector3int16

Fields of Vector3int16

value: [i16; 3]

Methods

impl RbxValue[src]

pub fn get_type(&self) -> RbxValueType[src]

Returns the type of this value as a RbxValueType.

pub fn try_convert_ref<'a>(
    &'a self,
    target_type: RbxValueType
) -> RbxValueConversion
[src]

Attempts to convert a reference to an RbxValue to a new value with the given type.

Is a no-op (by returning RbxValueConversion::Unnecessary) if the value is already the right type.

If the conversion wasn't successful, returns RbxValueConversion::Failed.

Trait Implementations

impl Clone for RbxValue[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<RbxValue> for UnresolvedRbxValue[src]

impl PartialEq<RbxValue> for RbxValue[src]

impl Debug for RbxValue[src]

impl Serialize for RbxValue[src]

impl<'de> Deserialize<'de> for RbxValue[src]

Auto Trait Implementations

impl Send for RbxValue

impl Sync for RbxValue

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]