pub struct Colors { /* private fields */ }Implementations§
Source§impl Colors
impl Colors
pub const fn of_one(color: Color) -> Self
pub const fn is_empty(self) -> bool
pub const fn len(self) -> u32
pub const fn top(self) -> Option<Color>
pub fn push(&mut self, color: Color)
pub fn pop(&mut self) -> Option<Color>
pub fn take(&mut self, amount: u32) -> Option<Self>
pub const fn reverse(self) -> Self
Trait Implementations§
Source§impl FromIterator<Color> for Colors
impl FromIterator<Color> for Colors
Source§impl IntoIterator for Colors
impl IntoIterator for Colors
Source§impl Ord for Colors
impl Ord for Colors
Source§impl PartialOrd for Colors
impl PartialOrd for Colors
impl Copy for Colors
impl Eq for Colors
impl StructuralPartialEq for Colors
Auto Trait Implementations§
impl Freeze for Colors
impl RefUnwindSafe for Colors
impl Send for Colors
impl Sync for Colors
impl Unpin for Colors
impl UnwindSafe for Colors
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