Struct lcms2::NamedColorList
source · pub struct NamedColorList(/* private fields */);
Expand description
Palette of colors with names
Implementations§
Methods from Deref<Target = NamedColorListRef>§
sourcepub fn get(&self, index: usize) -> Option<NamedColorInfo>
pub fn get(&self, index: usize) -> Option<NamedColorInfo>
Get color info
pub fn colors(&self) -> Vec<NamedColorInfo>
Trait Implementations§
source§impl AsMut<NamedColorListRef> for NamedColorList
impl AsMut<NamedColorListRef> for NamedColorList
source§fn as_mut(&mut self) -> &mut NamedColorListRef
fn as_mut(&mut self) -> &mut NamedColorListRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<NamedColorListRef> for NamedColorList
impl AsRef<NamedColorListRef> for NamedColorList
source§fn as_ref(&self) -> &NamedColorListRef
fn as_ref(&self) -> &NamedColorListRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<NamedColorListRef> for NamedColorList
impl Borrow<NamedColorListRef> for NamedColorList
source§fn borrow(&self) -> &NamedColorListRef
fn borrow(&self) -> &NamedColorListRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<NamedColorListRef> for NamedColorList
impl BorrowMut<NamedColorListRef> for NamedColorList
source§fn borrow_mut(&mut self) -> &mut NamedColorListRef
fn borrow_mut(&mut self) -> &mut NamedColorListRef
Mutably borrows from an owned value. Read more
source§impl Deref for NamedColorList
impl Deref for NamedColorList
§type Target = NamedColorListRef
type Target = NamedColorListRef
The resulting type after dereferencing.
source§fn deref(&self) -> &NamedColorListRef
fn deref(&self) -> &NamedColorListRef
Dereferences the value.
source§impl DerefMut for NamedColorList
impl DerefMut for NamedColorList
source§fn deref_mut(&mut self) -> &mut NamedColorListRef
fn deref_mut(&mut self) -> &mut NamedColorListRef
Mutably dereferences the value.
source§impl Drop for NamedColorList
impl Drop for NamedColorList
source§impl ForeignType for NamedColorList
impl ForeignType for NamedColorList
§type CType = NAMEDCOLORLIST
type CType = NAMEDCOLORLIST
The raw C type.
§type Ref = NamedColorListRef
type Ref = NamedColorListRef
The type representing a reference to this type.
source§unsafe fn from_ptr(ptr: *mut NAMEDCOLORLIST) -> NamedColorList
unsafe fn from_ptr(ptr: *mut NAMEDCOLORLIST) -> NamedColorList
Constructs an instance of this type from its raw type. Read more
source§fn as_ptr(&self) -> *mut NAMEDCOLORLIST
fn as_ptr(&self) -> *mut NAMEDCOLORLIST
Returns a raw pointer to the wrapped value.
Auto Trait Implementations§
impl RefUnwindSafe for NamedColorList
impl !Send for NamedColorList
impl !Sync for NamedColorList
impl Unpin for NamedColorList
impl UnwindSafe for NamedColorList
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