pub struct ExampleCatalog { /* private fields */ }Implementations§
Source§impl ExampleCatalog
impl ExampleCatalog
pub fn load() -> Self
pub fn select_category(&self, prompter: &DialoguerPrompter) -> Result<String>
pub fn select_example_from_category( &self, category: &str, prompter: &DialoguerPrompter, ) -> Result<String>
pub fn categories(&self) -> Vec<&String>
pub fn examples_in_category(&self, category: &str) -> Option<&Vec<String>>
Auto Trait Implementations§
impl Freeze for ExampleCatalog
impl RefUnwindSafe for ExampleCatalog
impl Send for ExampleCatalog
impl Sync for ExampleCatalog
impl Unpin for ExampleCatalog
impl UnwindSafe for ExampleCatalog
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