[−][src]Struct lorry::Program
The heart of your spec
Implementations
impl Program
[src]
pub fn new() -> Program
[src]
Creates a new program struct.
All values are blank
pub fn author(self, author: &'static str) -> Self
[src]
Sets the author
It is required
pub fn version(self, version: &'static str) -> Self
[src]
Sets the version
It is required
pub fn check(&self)
[src]
Checks the package for invalid config
pub fn name(self, name: &'static str) -> Self
[src]
Adds a name propety under the package section
Names are required
pub fn dependencie(self, name: &'static str, version: &'static str) -> Self
[src]
Adds a dependencie
pub fn gen(self)
[src]
Generates cargo toml.
Also runs the check
function
Auto Trait Implementations
impl RefUnwindSafe for Program
[src]
impl Send for Program
[src]
impl Sync for Program
[src]
impl Unpin for Program
[src]
impl UnwindSafe for Program
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,