pub enum BaseColorSpace {
DeviceRGB,
DeviceCMYK,
DeviceGray,
ICCBased(IccColorSpace),
Separation(String),
Lab,
}Expand description
Base color space for indexed colors
Variants§
DeviceRGB
Device RGB
DeviceCMYK
Device CMYK
DeviceGray
Device Gray
ICCBased(IccColorSpace)
ICC-based color space
Separation(String)
Separation color space
Lab
Lab color space
Implementations§
Source§impl BaseColorSpace
impl BaseColorSpace
Sourcepub fn component_count(&self) -> usize
pub fn component_count(&self) -> usize
Get the number of components for this color space
Sourcepub fn to_pdf_object(&self) -> Object
pub fn to_pdf_object(&self) -> Object
Convert to PDF object representation
Trait Implementations§
Source§impl Clone for BaseColorSpace
impl Clone for BaseColorSpace
Source§fn clone(&self) -> BaseColorSpace
fn clone(&self) -> BaseColorSpace
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BaseColorSpace
impl Debug for BaseColorSpace
Source§impl PartialEq for BaseColorSpace
impl PartialEq for BaseColorSpace
impl StructuralPartialEq for BaseColorSpace
Auto Trait Implementations§
impl Freeze for BaseColorSpace
impl RefUnwindSafe for BaseColorSpace
impl Send for BaseColorSpace
impl Sync for BaseColorSpace
impl Unpin for BaseColorSpace
impl UnwindSafe for BaseColorSpace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more