Struct sensors::Feature [−][src]
pub struct Feature { /* fields omitted */ }
Data about a single chip feature (or category leader)
Methods
impl Feature
[src]
impl Feature
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
pub fn number(&self) -> i32
[src]
pub fn number(&self) -> i32
pub fn feature_type(&self) -> &FeatureType
[src]
pub fn feature_type(&self) -> &FeatureType
pub fn get_label(&self) -> Result<String, LibsensorsError>
[src]
pub fn get_label(&self) -> Result<String, LibsensorsError>
Look up the label of the feature. If no label exists for this feature, its name is returned itself.
pub fn get_subfeature(
&self,
subfeature_type: SubfeatureType
) -> Option<Subfeature>
[src]
pub fn get_subfeature(
&self,
subfeature_type: SubfeatureType
) -> Option<Subfeature>
Returns the subfeature of the given type, if it exists, None otherwise.
Trait Implementations
impl Debug for Feature
[src]
impl Debug for Feature
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl IntoIterator for Feature
[src]
impl IntoIterator for Feature
type Item = Subfeature
The type of the elements being iterated over.
type IntoIter = SubfeatureIterator
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more