[−][src]Struct libmedium::units::AngularVelocity
Struct that represents a frequency.
Implementations
impl AngularVelocity
[src]
pub fn from_rpm(rpm: u32) -> Self
[src]
Create a AngularVelocity struct from a value measuring times per minute.
pub fn as_rpm(self) -> u32
[src]
Return this AngularVelocity's value in times per minute.
Trait Implementations
impl Add<AngularVelocity> for AngularVelocity
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl Clone for AngularVelocity
[src]
fn clone(&self) -> AngularVelocity
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AngularVelocity
[src]
impl Debug for AngularVelocity
[src]
impl Display for AngularVelocity
[src]
impl<T: Into<u32>> Div<T> for AngularVelocity
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: T) -> AngularVelocity
[src]
impl Eq for AngularVelocity
[src]
impl Hash for AngularVelocity
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<S: FanSensor> Max<AngularVelocity> for S
[src]
fn read_max(&self) -> Result<P, Error>
[src]
fn write_max(&self, max: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<S: FanSensor> Min<AngularVelocity> for S
[src]
fn read_min(&self) -> Result<P, Error>
[src]
fn write_min(&self, min: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<T: Into<u32>> Mul<T> for AngularVelocity
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: T) -> AngularVelocity
[src]
impl Ord for AngularVelocity
[src]
fn cmp(&self, other: &AngularVelocity) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AngularVelocity> for AngularVelocity
[src]
fn eq(&self, other: &AngularVelocity) -> bool
[src]
fn ne(&self, other: &AngularVelocity) -> bool
[src]
impl PartialOrd<AngularVelocity> for AngularVelocity
[src]
fn partial_cmp(&self, other: &AngularVelocity) -> Option<Ordering>
[src]
fn lt(&self, other: &AngularVelocity) -> bool
[src]
fn le(&self, other: &AngularVelocity) -> bool
[src]
fn gt(&self, other: &AngularVelocity) -> bool
[src]
fn ge(&self, other: &AngularVelocity) -> bool
[src]
impl Raw for AngularVelocity
[src]
impl<S: FanSensor + Faulty> Sensor<AngularVelocity> for S
[src]
fn read_input(&self) -> Result<AngularVelocity, Error>
[src]
Reads the input subfunction of this fan sensor. Returns an error, if this sensor doesn't support the subfunction.
fn read_enable(&self) -> Result<bool, Error>
[src]
fn write_enable(&self, enable: bool) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl StructuralEq for AngularVelocity
[src]
impl StructuralPartialEq for AngularVelocity
[src]
Auto Trait Implementations
impl RefUnwindSafe for AngularVelocity
impl Send for AngularVelocity
impl Sync for AngularVelocity
impl Unpin for AngularVelocity
impl UnwindSafe for AngularVelocity
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S> Max<AngularVelocity> for S where
S: FanSensor,
[src]
S: FanSensor,
fn read_max(&self) -> Result<P, Error>
[src]
fn write_max(&self, max: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<S> Max<AngularVelocity> for S where
S: FanSensor,
[src]
S: FanSensor,
fn read_max(&self) -> Result<P, Error>
[src]
fn write_max(&self, max: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<S> Min<AngularVelocity> for S where
S: FanSensor,
[src]
S: FanSensor,
fn read_min(&self) -> Result<P, Error>
[src]
fn write_min(&self, min: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<S> Min<AngularVelocity> for S where
S: FanSensor,
[src]
S: FanSensor,
fn read_min(&self) -> Result<P, Error>
[src]
fn write_min(&self, min: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<S> Sensor<AngularVelocity> for S where
S: FanSensor + Faulty,
[src]
S: FanSensor + Faulty,
fn read_input(&Self) -> Result<AngularVelocity, Error>
[src]
Reads the input subfunction of this fan sensor. Returns an error, if this sensor doesn't support the subfunction.
fn read_enable(&self) -> Result<bool, Error>
[src]
fn write_enable(&self, enable: bool) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<S> Sensor<AngularVelocity> for S where
S: FanSensor + Faulty,
[src]
S: FanSensor + Faulty,
fn read_input(&Self) -> Result<AngularVelocity, Error>
[src]
Reads the input subfunction of this fan sensor. Returns an error, if this sensor doesn't support the subfunction.
fn read_enable(&self) -> Result<bool, Error>
[src]
fn write_enable(&self, enable: bool) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,