Documentation of what does for each type

This commit is contained in:
athulappadan 2016-09-11 17:00:09 +05:30
parent 1fca1ab0e7
commit 49e77dbf25
32 changed files with 41 additions and 0 deletions

View file

@ -84,6 +84,7 @@ pub enum ErrorOutputType {
}
impl Default for ErrorOutputType {
/// Creates an `HumanReadble`, initialised with `ColorConfig` enum type `Auto`.
fn default() -> ErrorOutputType {
ErrorOutputType::HumanReadable(ColorConfig::Auto)
}

View file

@ -45,6 +45,7 @@ pub struct TargetDataLayout {
}
impl Default for TargetDataLayout {
/// Creates an instance of `TargetDataLayout`.
fn default() -> TargetDataLayout {
TargetDataLayout {
endian: Endian::Big,