Enum verbosity::Verbosity [−][src]
pub enum Verbosity {
Quite,
Terse,
Verbose,
}
Expand description
Verbosity level option <Verbose
|Terse
|Quite
>
Variants
No output option
Minimal reporting option
Extended reporting option
Implementations
Gets the global Verbosity
level
Verbosity::Verbose.set_as_global();
assert_eq!(Verbosity::level(), Verbosity::Verbose);
Checks if global Verbosity
level is Quite
Verbosity::Quite.set_as_global();
assert_eq!(Verbosity::level(), Verbosity::Quite);
Checks if global Verbosity
level is Terse
- is not terse if level is ‘Quite’
Verbosity::Quite.set_as_global();
assert_eq!(Verbosity::level(), Verbosity::Quite);
assert!(!Verbosity::is_terse())
- is terse if level is
Terse
Verbosity::Terse.set_as_global();
assert_eq!(Verbosity::level(), Verbosity::Terse);
assert!(Verbosity::is_terse())
- is terse also if level is ‘Verbose’
Verbosity::Verbose.set_as_global();
assert_eq!(Verbosity::level(), Verbosity::Verbose);
assert!(Verbosity::is_terse())
Checks if global Verbosity
level is ‘Verbose’
- is not verbose if level is ‘Quite’
Verbosity::Quite.set_as_global();
assert_eq!(Verbosity::level(), Verbosity::Quite);
assert!(!Verbosity::is_verbose())
- is not verbose if level is
Terse
Verbosity::Terse.set_as_global();
assert_eq!(Verbosity::level(), Verbosity::Terse);
assert!(!Verbosity::is_verbose())
- is verbose if level is ‘Verbose’
Verbosity::Verbose.set_as_global();
assert_eq!(Verbosity::level(), Verbosity::Verbose);
assert!(Verbosity::is_verbose())
Sets the instance of a Verbosity
level as the global level
Verbosity::Verbose.set_as_global();
assert_eq!(Verbosity::level(), Verbosity::Verbose);
Verbosity::Quite.set_as_global();
assert_ne!(Verbosity::level(), Verbosity::Quite);
assert_eq!(Verbosity::level(), Verbosity::Verbose);
* this can only be set once, all other calls will be ignored
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Verbosity
impl UnwindSafe for Verbosity
Blanket Implementations
Mutably borrows from an owned value. Read more