[][src]Struct init_project::suggestions::Project

pub struct Project { /* fields omitted */ }

Contains all the necessary handler information

Implementations

impl Project[src]

pub fn new() -> Project[src]

Creates the new instance of Project structure

Examples

let project = Project::new();

pub fn display(self) -> Project[src]

Displays the projects to choose from

Returns the instance of Project.

Examples

let project = Project::new();
project.display();

pub fn choose(self) -> Project[src]

Prompts the user to choose from the available projects

Sets key to which project the user has chosen. Returns the instance of the Project.

Examples

let project = Project::new();
project.display().choose();

pub fn generate_project(&mut self)[src]

Generate project

Generates user chosen project.

Examples

let project = Project::new();
project.display().choose().generate_project();

Auto Trait Implementations

impl RefUnwindSafe for Project

impl Send for Project

impl Sync for Project

impl Unpin for Project

impl UnwindSafe for Project

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.