Struct rbx_types::Color3uint8
source · pub struct Color3uint8 {
pub r: u8,
pub g: u8,
pub b: u8,
}
Expand description
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: u8
§g: u8
§b: u8
Implementations§
Trait Implementations§
source§impl Clone for Color3uint8
impl Clone for Color3uint8
source§fn clone(&self) -> Color3uint8
fn clone(&self) -> Color3uint8
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 Color3uint8
impl Debug for Color3uint8
source§impl From<Color3> for Color3uint8
impl From<Color3> for Color3uint8
source§impl From<Color3uint8> for Color3
impl From<Color3uint8> for Color3
source§fn from(value: Color3uint8) -> Self
fn from(value: Color3uint8) -> Self
Converts to this type from the input type.
source§impl From<Color3uint8> for Variant
impl From<Color3uint8> for Variant
source§fn from(value: Color3uint8) -> Self
fn from(value: Color3uint8) -> Self
Converts to this type from the input type.
source§impl PartialEq for Color3uint8
impl PartialEq for Color3uint8
source§fn eq(&self, other: &Color3uint8) -> bool
fn eq(&self, other: &Color3uint8) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Color3uint8
impl Eq for Color3uint8
impl StructuralEq for Color3uint8
impl StructuralPartialEq for Color3uint8
Auto Trait Implementations§
impl RefUnwindSafe for Color3uint8
impl Send for Color3uint8
impl Sync for Color3uint8
impl Unpin for Color3uint8
impl UnwindSafe for Color3uint8
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