diff options
author | Ben S <ogham@bsago.me> | 2015-01-24 12:38:05 +0000 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-01-24 12:38:05 +0000 |
commit | 2ba0b3bd5f71d3ab96b0f1d9c8647c4ae9178921 (patch) | |
tree | ae91ce760e1fffa9fa9c988fe06ca07db691aedf /src/filetype.rs | |
parent | 6457f4b5772f659c5945a044168d0a2659fe2437 (diff) |
Convert docs to standard format
Diffstat (limited to 'src/filetype.rs')
-rw-r--r-- | src/filetype.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/filetype.rs b/src/filetype.rs index b95a1f7..605c7f1 100644 --- a/src/filetype.rs +++ b/src/filetype.rs @@ -55,6 +55,8 @@ static BUILD_TYPES: &'static [&'static str] = &[ "Gruntfile.coffee" ]; impl FileType { + + /// Get the `ansi_term::Style` that a file of this type should use. pub fn style(&self) -> Style { match *self { Normal => Plain, @@ -77,6 +79,7 @@ impl FileType { } pub trait HasType { + /// For a given file, find out what type it has. fn get_type(&self) -> FileType; } |