pub struct ColorSpace {
pub type: CtColorSpaceType,
pub bits_per_component: Option<i32>,
pub profile: Option<StLoc>,
pub id: StId,
pub palette: Option<Palette>,
pub xml_other_attrs: Vec<(Box<str>, Box<str>)>,
pub xml_other_children: Vec<(usize, Box<str>)>,
}Expand description
颜色空间资源描述,在基础类型上扩展定义 ID 属性,类型为 ST_ID。
Fields§
§type: CtColorSpaceType§bits_per_component: Option<i32>§profile: Option<StLoc>§id: StId§palette: Option<Palette>§xml_other_attrs: Vec<(Box<str>, Box<str>)>§xml_other_children: Vec<(usize, Box<str>)>Implementations§
Source§impl ColorSpace
impl ColorSpace
pub fn from_reader<R: BufRead>(reader: R) -> Result<Self, SdkError>
Trait Implementations§
Source§impl Clone for ColorSpace
impl Clone for ColorSpace
Source§fn clone(&self) -> ColorSpace
fn clone(&self) -> ColorSpace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColorSpace
impl Debug for ColorSpace
Source§impl Default for ColorSpace
impl Default for ColorSpace
Source§fn default() -> ColorSpace
fn default() -> ColorSpace
Returns the “default value” for a type. Read more
Source§impl Display for ColorSpace
impl Display for ColorSpace
Auto Trait Implementations§
impl Freeze for ColorSpace
impl RefUnwindSafe for ColorSpace
impl Send for ColorSpace
impl Sync for ColorSpace
impl Unpin for ColorSpace
impl UnsafeUnpin 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