Struct nvapi_hi::Range
[−]
[src]
pub struct Range<T> {
pub min: T,
pub max: T,
}Fields
min: T
max: T
Methods
impl<T> Range<T>[src]
pub fn range_from<U>(r: Range<U>) -> Range<T> where
T: From<U>, [src]
T: From<U>,
pub fn from_scalar(v: T) -> Range<T> where
T: Clone, [src]
T: Clone,
Trait Implementations
impl<T> Default for Range<T> where
T: Default, [src]
T: Default,
impl<T> Debug for Range<T> where
T: Debug, [src]
T: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl<T> PartialOrd<Range<T>> for Range<T> where
T: PartialOrd<T>, [src]
T: PartialOrd<T>,
fn partial_cmp(&self, __arg_0: &Range<T>) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &Range<T>) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &Range<T>) -> bool[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &Range<T>) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &Range<T>) -> bool[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<T> PartialEq<Range<T>> for Range<T> where
T: PartialEq<T>, [src]
T: PartialEq<T>,
fn eq(&self, __arg_0: &Range<T>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Range<T>) -> bool[src]
This method tests for !=.
impl<T> Serialize for Range<T> where
T: Serialize, [src]
T: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<'de, T> Deserialize<'de> for Range<T> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Range<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<Range<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> Ord for Range<T> where
T: Ord, [src]
T: Ord,
fn cmp(&self, __arg_0: &Range<T>) -> Ordering[src]
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl<T> Copy for Range<T> where
T: Copy, [src]
T: Copy,
impl<T> Display for Range<T> where
T: Display, [src]
T: Display,
impl<T> Eq for Range<T> where
T: Eq, [src]
T: Eq,
impl<T> Hash for Range<T> where
T: Hash, [src]
T: Hash,
fn hash<__HT>(&self, __arg_0: &mut __HT) where
__HT: Hasher, [src]
__HT: Hasher,
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl<T> Clone for Range<T> where
T: Clone, [src]
T: Clone,