[][src]Struct core_graphics::gradient::CGGradient

pub struct CGGradient(_);

Implementations

impl CGGradient[src]

pub fn create_with_color_components(
    color_space: &CGColorSpace,
    components: &[CGFloat],
    locations: &[CGFloat],
    count: usize
) -> CGGradient
[src]

pub fn create_with_colors(
    color_space: &CGColorSpace,
    colors: &CFArray<CGColor>,
    locations: &[CGFloat]
) -> CGGradient
[src]

Trait Implementations

impl AsRef<CGGradientRef> for CGGradient[src]

impl Borrow<CGGradientRef> for CGGradient[src]

impl Clone for CGGradient[src]

impl Deref for CGGradient[src]

type Target = CGGradientRef

The resulting type after dereferencing.

impl DerefMut for CGGradient[src]

impl Drop for CGGradient[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> 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.