pub struct Recipes { /* private fields */ }Implementations§
Source§impl Recipes
impl Recipes
pub fn new(root: Option<Root>) -> Recipes
pub fn from_flags( values: &[String], variable: Option<PathBuf>, toplevel: impl FnOnce() -> Option<PathBuf>, ) -> Result<Recipes, String>
pub fn root(&self) -> Option<&Root>
pub fn path(&self, rel: &str) -> Option<PathBuf>
pub fn find(&self, rel: &str) -> Result<Option<Recipe>, String>
pub fn read(&self, rel: &str) -> Result<Recipe, String>
pub fn missing(&self, what: &str, rel: &str) -> String
pub fn presets(&self) -> Vec<String>
pub fn books(&self) -> Vec<String>
pub fn icon_sets(&self, product: &str) -> Vec<String>
pub fn icon_products(&self) -> Vec<String>
pub fn universe(&self, own: &str) -> Vec<String>
pub fn list_products(&mut self, text: &str, what: &str) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recipes
impl RefUnwindSafe for Recipes
impl Send for Recipes
impl Sync for Recipes
impl Unpin for Recipes
impl UnsafeUnpin for Recipes
impl UnwindSafe for Recipes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.