Struct nvapi::Percentage
source · [−]pub struct Percentage(pub u32);
Tuple Fields
0: u32
Implementations
sourceimpl Percentage
impl Percentage
pub fn from_raw(v: u32) -> Result<Self, ArgumentRangeError>
Trait Implementations
sourceimpl Clone for Percentage
impl Clone for Percentage
sourcefn clone(&self) -> Percentage
fn clone(&self) -> Percentage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Percentage
impl Debug for Percentage
sourceimpl Default for Percentage
impl Default for Percentage
sourcefn default() -> Percentage
fn default() -> Percentage
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Percentage
impl<'de> Deserialize<'de> for Percentage
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for Percentage
impl Display for Percentage
sourceimpl From<Percentage> for Percentage1000
impl From<Percentage> for Percentage1000
sourcefn from(p: Percentage) -> Self
fn from(p: Percentage) -> Self
Converts to this type from the input type.
sourceimpl From<Percentage1000> for Percentage
impl From<Percentage1000> for Percentage
sourcefn from(p: Percentage1000) -> Self
fn from(p: Percentage1000) -> Self
Converts to this type from the input type.
sourceimpl Hash for Percentage
impl Hash for Percentage
sourceimpl Ord for Percentage
impl Ord for Percentage
sourceimpl PartialEq<Percentage> for Percentage
impl PartialEq<Percentage> for Percentage
sourcefn eq(&self, other: &Percentage) -> bool
fn eq(&self, other: &Percentage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Percentage) -> bool
fn ne(&self, other: &Percentage) -> bool
This method tests for !=
.
sourceimpl PartialOrd<Percentage> for Percentage
impl PartialOrd<Percentage> for Percentage
sourcefn partial_cmp(&self, other: &Percentage) -> Option<Ordering>
fn partial_cmp(&self, other: &Percentage) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for Percentage
impl Serialize for Percentage
impl Copy for Percentage
impl Eq for Percentage
impl StructuralEq for Percentage
impl StructuralPartialEq for Percentage
Auto Trait Implementations
impl RefUnwindSafe for Percentage
impl Send for Percentage
impl Sync for Percentage
impl Unpin for Percentage
impl UnwindSafe for Percentage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more