pub struct RetroPockets { /* private fields */ }Expand description
Wrapper around RetroPocket that provide handful functions to access them by color
Implementations§
Source§impl RetroPockets
impl RetroPockets
pub fn color(&self, c: Color) -> &RetroPocket
pub fn color_mut(&mut self, c: Color) -> &mut RetroPocket
pub fn from_str(white: &str, black: &str) -> Result<Self, ParseRetroPocketError>
Trait Implementations§
Source§impl Clone for RetroPockets
impl Clone for RetroPockets
Source§fn clone(&self) -> RetroPockets
fn clone(&self) -> RetroPockets
Returns a duplicate 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 Debug for RetroPockets
impl Debug for RetroPockets
Source§impl Default for RetroPockets
Empty pocket for each side
impl Default for RetroPockets
Empty pocket for each side
Source§impl Hash for RetroPockets
impl Hash for RetroPockets
Source§impl PartialEq for RetroPockets
impl PartialEq for RetroPockets
impl Eq for RetroPockets
impl StructuralPartialEq for RetroPockets
Auto Trait Implementations§
impl Freeze for RetroPockets
impl RefUnwindSafe for RetroPockets
impl Send for RetroPockets
impl Sync for RetroPockets
impl Unpin for RetroPockets
impl UnwindSafe for RetroPockets
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