[][src]Struct rbx_types::Color3uint8

pub struct Color3uint8 {
    pub r: u8,
    pub g: u8,
    pub b: u8,
}

Represents non-HDR colors, i.e. those whose individual color channels do not exceed 1. This type is used for serializing properties like BasePart.Color, but is not exposed as a distinct type to Lua code.

See Also

  • Color3, which is more common and can represent HDR colors.

Fields

r: u8g: u8b: u8

Methods

impl Color3uint8[src]

pub fn new(r: u8, g: u8, b: u8) -> Self[src]

Trait Implementations

impl Clone for Color3uint8[src]

impl Copy for Color3uint8[src]

impl Debug for Color3uint8[src]

impl Eq for Color3uint8[src]

impl From<Color3uint8> for Variant[src]

impl PartialEq<Color3uint8> for Color3uint8[src]

impl StructuralEq for Color3uint8[src]

impl StructuralPartialEq for Color3uint8[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,