1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Print score and base score for several vectors.
//!
//! # Description
//!
//! The `base_score()` method allows you to get the base score for [CVSS
//! v2][cvss-v2] and [CVSS v3][cvss-v3] vectors. For [CVSS v4][cvss-v4]
//! vectors the score returned by `base_score()` is identical to the
//! score returned by `Score::from()`.
//!
//! # Usage
//!
//! ```sh
//! cargo run --example base-score
//! ```
//!
//! [cvss-v2]: https://www.first.org/cvss/v2/guide
//! "CVSS v2.0 Documentation"
//! [cvss-v3]: https://www.first.org/cvss/v3-1/specification-document
//! "CVSS v3.1 Specification"
//! [cvss-v4]: https://www.first.org/cvss/v4-0/specification-document
//! "CVSS v4.0 Specification"
use ;