Struct lcms2::NamedColorListRef
source · pub struct NamedColorListRef(/* private fields */);
Expand description
A borrowed reference to a NamedColorList
.
Implementations§
source§impl NamedColorListRef
impl 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<'a> Debug for NamedColorListRef
impl<'a> Debug for NamedColorListRef
source§impl ForeignTypeRef for NamedColorListRef
impl ForeignTypeRef for NamedColorListRef
§type CType = NAMEDCOLORLIST
type CType = NAMEDCOLORLIST
The raw C type.
source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
source§unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for NamedColorListRef
impl !Send for NamedColorListRef
impl !Sync for NamedColorListRef
impl Unpin for NamedColorListRef
impl UnwindSafe for NamedColorListRef
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