pub struct ScaledValue<F, V>{
pub scale_factor: F,
pub scaled_value: V,
}Expand description
Value with a scaling.
Fields§
§scale_factor: FScale factor.
scaled_value: VScaled value.
Trait Implementations§
Source§impl<F, V> Clone for ScaledValue<F, V>where
F: TryFromSlice + WriteToBuffer + DumpField + Clone,
V: TryFromSlice + WriteToBuffer + DumpField + Clone,
impl<F, V> Clone for ScaledValue<F, V>where
F: TryFromSlice + WriteToBuffer + DumpField + Clone,
V: TryFromSlice + WriteToBuffer + DumpField + Clone,
Source§fn clone(&self) -> ScaledValue<F, V>
fn clone(&self) -> ScaledValue<F, V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F, V> Debug for ScaledValue<F, V>where
F: TryFromSlice + WriteToBuffer + DumpField + Debug,
V: TryFromSlice + WriteToBuffer + DumpField + Debug,
impl<F, V> Debug for ScaledValue<F, V>where
F: TryFromSlice + WriteToBuffer + DumpField + Debug,
V: TryFromSlice + WriteToBuffer + DumpField + Debug,
Source§impl<F, V> Dump for ScaledValue<F, V>
impl<F, V> Dump for ScaledValue<F, V>
impl<F, V> Eq for ScaledValue<F, V>where
F: TryFromSlice + WriteToBuffer + DumpField + Eq,
V: TryFromSlice + WriteToBuffer + DumpField + Eq,
Source§impl<F, V> PartialEq for ScaledValue<F, V>where
F: TryFromSlice + WriteToBuffer + DumpField + PartialEq,
V: TryFromSlice + WriteToBuffer + DumpField + PartialEq,
impl<F, V> PartialEq for ScaledValue<F, V>where
F: TryFromSlice + WriteToBuffer + DumpField + PartialEq,
V: TryFromSlice + WriteToBuffer + DumpField + PartialEq,
impl<F, V> StructuralPartialEq for ScaledValue<F, V>where
F: TryFromSlice + WriteToBuffer + DumpField + PartialEq,
V: TryFromSlice + WriteToBuffer + DumpField + PartialEq,
Source§impl<F, V> TryFromSlice for ScaledValue<F, V>
impl<F, V> TryFromSlice for ScaledValue<F, V>
Source§impl<F, V> WriteToBuffer for ScaledValue<F, V>
impl<F, V> WriteToBuffer for ScaledValue<F, V>
Auto Trait Implementations§
impl<F, V> Freeze for ScaledValue<F, V>
impl<F, V> RefUnwindSafe for ScaledValue<F, V>where
F: RefUnwindSafe,
V: RefUnwindSafe,
impl<F, V> Send for ScaledValue<F, V>
impl<F, V> Sync for ScaledValue<F, V>
impl<F, V> Unpin for ScaledValue<F, V>
impl<F, V> UnsafeUnpin for ScaledValue<F, V>where
F: UnsafeUnpin,
V: UnsafeUnpin,
impl<F, V> UnwindSafe for ScaledValue<F, V>where
F: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more