We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a14354a commit 19e21f8Copy full SHA for 19e21f8
src/ata/data/attr/mod.rs
@@ -38,6 +38,7 @@ impl SmartAttribute {
38
pub fn self_preserving(&self) -> bool { self.flags() & (1<<5) != 0 }
39
pub fn misc_flags(&self) -> u16 { self.flags() & (!0b11_1111) }
40
41
+ /// Annotate attribute using optional [drivedb](../../../drivedb/index.html) entry.
42
#[cfg(feature = "drivedb-parser")]
43
pub fn annotate(&mut self, meta: &Option<drivedb::DriveMeta>) {
44
let id = self.id;
@@ -103,6 +104,7 @@ all in addition to hosting the annotate() function as a method.
103
104
105
106
pub trait SmartAttributes {
107
+ /// Annotate attributes using optional [drivedb](../../../drivedb/index.html) entry.
108
fn annotate(&mut self, meta: &Option<drivedb::DriveMeta>);
109
}
110
0 commit comments