[][src]Enum rsvg_internals::surface_utils::shared_surface::SurfaceType

pub enum SurfaceType {

Types of pixel data in a ImageSurface.



The pixel data is in the sRGB color space.


The pixel data is in the linear sRGB color space.


The pixel data is alpha-only (contains meaningful data only in the alpha channel).

A number of methods are optimized for alpha-only surfaces. For example, linearization and unlinearization have no effect for alpha-only surfaces.


impl SurfaceType[src]

pub fn combine(self, other: SurfaceType) -> SurfaceType[src]

Combines surface types

If combining two alpha-only surfaces, the result is alpha-only. If one is alpha-only, the result is the other. If none is alpha-only, the types should be the same.


Panics if the surface types are not alpha-only and differ.

Trait Implementations

impl Clone for SurfaceType[src]

impl Copy for SurfaceType[src]

impl Debug for SurfaceType[src]

impl Eq for SurfaceType[src]

impl From<ColorInterpolationFilters> for SurfaceType[src]

impl Hash for SurfaceType[src]

impl PartialEq<SurfaceType> for SurfaceType[src]

impl StructuralEq for SurfaceType[src]

impl StructuralPartialEq for SurfaceType[src]

Auto Trait Implementations

impl RefUnwindSafe for SurfaceType

impl Send for SurfaceType

impl Sync for SurfaceType

impl Unpin for SurfaceType

impl UnwindSafe for SurfaceType

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> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,