Skip to main content

Guide

Struct Guide 

Source
pub struct Guide { /* private fields */ }

Implementations§

Source§

impl Guide

Source

pub fn new_default(dir: PathBuf, template_extension: &str) -> Self

Source

pub fn add_step( &mut self, step: &StepRef, after_step: Option<&StepRef>, code_extension: Option<Extension>, before_after_extension: Option<Extension>, )

Source

pub fn get_step_dir(&self, step: &StepRef) -> Option<&StepDir>

Source

pub fn steps_iter(&self) -> StepsIter<'_> ⓘ

Source

pub fn template(&self) -> &String

Source

pub fn render_template(&self, steps: String) -> String

Source

pub fn render_guide(&self) -> String

Trait Implementations§

Source§

impl DirStructure for Guide

Source§

impl HasField<DirStructure> for Guide

Source§

impl HasField<DirStructure> for Guide

Source§

impl HasField<DirStructure> for Guide

Source§

type Inner = Option<String>

Source§

fn resolve_path(__dir_structure_path: PathBuf) -> PathBuf

Source§

impl HasField<DirStructure> for Guide

Source§

type Inner = Option<String>

Source§

fn resolve_path(__dir_structure_path: PathBuf) -> PathBuf

Source§

impl HasField<DirStructure> for Guide

Source§

impl ReadFrom for Guide

Source§

fn read_from(__dir_structure_path: &Path) -> Result<Self>
where Self: Sized,

Reads the structure from the specified path, which can be either a file or a directory.
Source§

impl WriteTo for Guide

Source§

fn write_to(&self, __dir_structure_path: &Path) -> Result<()>

Writes the structure to the specified path.

Auto Trait Implementations§

§

impl Freeze for Guide

§

impl RefUnwindSafe for Guide

§

impl Send for Guide

§

impl Sync for Guide

§

impl Unpin for Guide

§

impl UnsafeUnpin for Guide

§

impl UnwindSafe for Guide

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DirStructureItem for T
where T: ReadFrom + WriteTo,

Source§

fn read(path: impl AsRef<Path>) -> Result<Self, Error>
where Self: Sized,

Uses the ReadFrom implementation to read the structure from disk, from the specified path.
Source§

fn write(&self, path: impl AsRef<Path>) -> Result<(), Error>

Uses the WriteTo implementation to write the structure to disk at the specified path.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSendSync for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.