Struct libpolymesh::common::transform::PolyColor [−][src]
Simple, JSON-Serializable color
Fields
r: u8
g: u8
b: u8
a: u8
Implementations
impl PolyColor
[src]
pub fn black() -> Self
[src]
pub fn white() -> Self
[src]
pub fn red() -> Self
[src]
pub fn green() -> Self
[src]
pub fn blue() -> Self
[src]
pub fn clear() -> Self
[src]
Trait Implementations
impl Add<PolyColor> for PolyColor
[src]
type Output = PolyColor
The resulting type after applying the +
operator.
fn add(self, rhs: PolyColor) -> PolyColor
[src]
impl Clone for PolyColor
[src]
impl Copy for PolyColor
[src]
impl Debug for PolyColor
[src]
impl<'de> Deserialize<'de> for PolyColor
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<__RhsT: Copy> Div<__RhsT> for PolyColor where
u8: Div<__RhsT, Output = u8>,
[src]
u8: Div<__RhsT, Output = u8>,
type Output = PolyColor
The resulting type after applying the /
operator.
fn div(self, rhs: __RhsT) -> PolyColor
[src]
impl<__RhsT: Copy> Mul<__RhsT> for PolyColor where
u8: Mul<__RhsT, Output = u8>,
[src]
u8: Mul<__RhsT, Output = u8>,
type Output = PolyColor
The resulting type after applying the *
operator.
fn mul(self, rhs: __RhsT) -> PolyColor
[src]
impl PartialEq<PolyColor> for PolyColor
[src]
impl PartialOrd<PolyColor> for PolyColor
[src]
fn partial_cmp(&self, other: &PolyColor) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for PolyColor
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for PolyColor
[src]
impl Sub<PolyColor> for PolyColor
[src]
Auto Trait Implementations
impl RefUnwindSafe for PolyColor
impl Send for PolyColor
impl Sync for PolyColor
impl Unpin for PolyColor
impl UnwindSafe for PolyColor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,