[][src]Struct versionisator::Version

pub struct Version {
    pub crate_name: String,
    pub crate_version: String,
    pub source_version: SourceVersion,
    pub compiler_mode: CompilerMode,
    pub os: String,
    pub arch: String,
    pub compiler_version: String,
}

Fields

crate_name: Stringcrate_version: Stringsource_version: SourceVersioncompiler_mode: CompilerModeos: Stringarch: Stringcompiler_version: String

Methods

impl Version[src]

pub fn new<P: AsRef<Path>>(
    project_dir: P,
    crate_name: String,
    crate_version: String
) -> Self
[src]

pub fn with_target<T: AsRef<str>>(self, target: T) -> Self[src]

pub fn simple(&self) -> String[src]

pub fn hash(&self) -> String[src]

pub fn full(&self) -> String[src]

Auto Trait Implementations

impl Send for Version

impl Unpin for Version

impl Sync for Version

impl UnwindSafe for Version

impl RefUnwindSafe for Version

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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