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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//! # Represents a single feature (e.g. gene)
//!
//! This struct is used as the type which is stored in a vector in `FeatureList`
use ;
/// A struct representing a single feature with a unique identifier.
///
/// The `Feature` struct is designed to represent individual genes using a unique identifier,
/// such as a feature name or accession number. It ensures easy creation and retrieval of the identifier
/// while maintaining flexibility for efficient data handling.
///
/// # Fields
///
/// - `id`: A unique identifier for the feature (e.g., a feature name or accession number).
///
/// # Examples
///
/// ```
/// use dual_threshold_optimization::collections::Feature;
///
/// let feature = Feature::from("gene1");
/// assert_eq!(feature.id(), "gene1");
/// ```