Enum pdf::object::ColorSpace
source · pub enum ColorSpace {
Show 13 variants
DeviceGray,
DeviceRGB,
DeviceCMYK,
DeviceN {
names: Vec<Name>,
alt: Box<ColorSpace>,
tint: Function,
attr: Option<Dictionary>,
},
CalGray(Dictionary),
CalRGB(Dictionary),
CalCMYK(Dictionary),
Indexed(Box<ColorSpace>, u8, Arc<[u8]>),
Separation(Name, Box<ColorSpace>, Function),
Icc(RcRef<Stream<IccInfo>>),
Pattern,
Named(Name),
Other(Vec<Primitive>),
}
Variants§
DeviceGray
DeviceRGB
DeviceCMYK
DeviceN
CalGray(Dictionary)
CalRGB(Dictionary)
CalCMYK(Dictionary)
Indexed(Box<ColorSpace>, u8, Arc<[u8]>)
Separation(Name, Box<ColorSpace>, Function)
Icc(RcRef<Stream<IccInfo>>)
Pattern
Named(Name)
Other(Vec<Primitive>)
Trait Implementations§
source§impl Clone for ColorSpace
impl Clone for ColorSpace
source§fn clone(&self) -> ColorSpace
fn clone(&self) -> ColorSpace
Returns a copy 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 DataSize for ColorSpace
impl DataSize for ColorSpace
source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
If
true
, the type has a heap size that can vary at runtime, depending on the actual value.source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC
is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
source§impl Debug for ColorSpace
impl Debug for ColorSpace
source§impl DeepClone for ColorSpace
impl DeepClone for ColorSpace
fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self>
source§impl Object for ColorSpace
impl Object for ColorSpace
source§fn from_primitive(p: Primitive, resolve: &impl Resolve) -> Result<ColorSpace>
fn from_primitive(p: Primitive, resolve: &impl Resolve) -> Result<ColorSpace>
Convert primitive to Self
source§impl ObjectWrite for ColorSpace
impl ObjectWrite for ColorSpace
Auto Trait Implementations§
impl RefUnwindSafe for ColorSpace
impl Send for ColorSpace
impl Sync for ColorSpace
impl Unpin for ColorSpace
impl UnwindSafe for ColorSpace
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