[][src]Struct photon_rs::Rgb

pub struct Rgb { /* fields omitted */ }

RGB color type.

Methods

impl Rgb[src]

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

Create a new RGB struct.

pub fn set_red(&mut self, r: u8)[src]

Set the Red value.

pub fn set_green(&mut self, g: u8)[src]

Get the Green value.

pub fn set_blue(&mut self, b: u8)[src]

Set the Blue value.

pub fn get_red(&self) -> u8[src]

Get the Red value.

pub fn get_green(&self) -> u8[src]

Get the Green value.

pub fn get_blue(&self) -> u8[src]

Get the Blue value.

Trait Implementations

impl Debug for Rgb[src]

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

impl From<Rgb> for JsValue[src]

impl From<Vec<u8>> for Rgb[src]

impl FromWasmAbi for Rgb[src]

type Abi = u32

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for Rgb[src]

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl OptionFromWasmAbi for Rgb[src]

impl OptionIntoWasmAbi for Rgb[src]

impl RefFromWasmAbi for Rgb[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, Rgb>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl RefMutFromWasmAbi for Rgb[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, Rgb>

Same as RefFromWasmAbi::Anchor

impl Serialize for Rgb[src]

impl WasmDescribe for Rgb[src]

Auto Trait Implementations

impl RefUnwindSafe for Rgb

impl Send for Rgb

impl Sync for Rgb

impl Unpin for Rgb

impl UnwindSafe for Rgb

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme, 

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme, 

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

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

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

impl<T, Dst> ConvAsUtil<Dst> for T

impl<T> ConvUtil for T

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

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

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

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

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> SetParameter for T

impl<Src> TryFrom<Src> for Src

type Err = NoError

The error type produced by a failed conversion.

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<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

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>, 

impl<Src> ValueFrom<Src> for Src

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.