pub struct ThemeSelection { /* private fields */ }Implementations§
Source§impl ThemeSelection
impl ThemeSelection
pub fn new(current: &ReviewTheme, themes: Arc<[ThemeChoice]>) -> Option<Self>
pub fn themes(&self) -> &[ThemeChoice]
pub const fn selected(&self) -> usize
pub fn selected_theme(&self) -> ReviewTheme
pub fn cancel(self) -> ReviewTheme
pub fn commit(self) -> ReviewTheme
pub fn select_relative(&mut self, delta: isize) -> ReviewTheme
pub fn select(&mut self, selected: usize) -> Option<ReviewTheme>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThemeSelection
impl RefUnwindSafe for ThemeSelection
impl Send for ThemeSelection
impl Sync for ThemeSelection
impl Unpin for ThemeSelection
impl UnsafeUnpin for ThemeSelection
impl UnwindSafe for ThemeSelection
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