[−][src]Enum rbx_dom_weak::RbxValue
Represents a value that can be assigned to the properties of an instance.
Variants
BinaryString
Fields of BinaryString
BrickColor
Fields of BrickColor
value: BrickColor
Bool
Fields of Bool
value: bool
CFrame
Fields of CFrame
Color3
Fields of Color3
Color3uint8
Fields of Color3uint8
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
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
String
Fields of String
value: String
UDim
Fields of UDim
UDim2
Fields of UDim2
Vector2
Fields of Vector2
Vector2int16
Fields of Vector2int16
Vector3
Fields of Vector3
Vector3int16
Fields of Vector3int16
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]
&'a self,
target_type: RbxValueType
) -> RbxValueConversion
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(&self) -> 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]
fn from(value: RbxValue) -> UnresolvedRbxValue
[src]
impl PartialEq<RbxValue> for RbxValue
[src]
impl Debug for RbxValue
[src]
impl Serialize for RbxValue
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for RbxValue
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,