[][src]Trait last_git_commit::Path

pub trait Path {
    fn path(&self) -> String;
}

Path

Required methods

fn path(&self) -> String

Loading content...

Implementors

impl Path for LastGitCommit[src]

fn path(&self) -> String[src]

Get the path to the repository.
(same as passed to new())

Examples

extern crate last_git_commit;
use last_git_commit::{LastGitCommit, Path};

let path = LastGitCommit::new(None, None).unwrap().path();

println!("Path: {}", path);
Loading content...