[]Struct pango::Color

pub struct Color(_);

The Color structure is used to represent a color in an uncalibrated RGB color-space.


impl Color[src]

pub fn parse(&mut self, spec: &str) -> bool[src]

Fill in the fields of a color from a string specification. The string can either one of a large set of standard names. (Taken from the CSS specification</ulink>), or it can be a hexadecimal value in the form '#rgb' '#rrggbb' '#rrrgggbbb' or '#rrrrggggbbbb' where 'r', 'g' and 'b' are hex digits of the red, green, and blue components of the color, respectively. (White in the four forms is '#fff' '#ffffff' '#fffffffff' and '#ffffffffffff')


a string specifying the new color


true if parsing of the specifier succeeded, otherwise false.

Trait Implementations

impl Clone for Color

impl Debug for Color[src]

impl Display for Color[src]

impl Eq for Color[src]

impl Hash for Color[src]

impl Ord for Color[src]

impl PartialEq<Color> for Color[src]

impl PartialOrd<Color> for Color[src]

impl StaticType for Color

impl StructuralEq for Color[src]

impl StructuralPartialEq for Color[src]

Auto Trait Implementations

impl RefUnwindSafe for Color

impl !Send for Color

impl !Sync for Color

impl Unpin for Color

impl UnwindSafe for Color

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.