One

Enum One 

Source
pub enum One {
    One = 1,
}
Expand description

The type whose only possible value is One.

Variants§

§

One = 1

Yes, this is an enum. But please don’t mention the variant. You should always just use One instead.

Trait Implementations§

Source§

impl Add<One> for i128

Source§

type Output = i128

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> i128

Performs the + operation. Read more
Source§

impl Add<One> for i16

Source§

type Output = i16

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> i16

Performs the + operation. Read more
Source§

impl Add<One> for i32

Source§

type Output = i32

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> i32

Performs the + operation. Read more
Source§

impl Add<One> for i64

Source§

type Output = i64

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> i64

Performs the + operation. Read more
Source§

impl Add<One> for i8

Source§

type Output = i8

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> i8

Performs the + operation. Read more
Source§

impl Add<One> for isize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> isize

Performs the + operation. Read more
Source§

impl Add<One> for u128

Source§

type Output = u128

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> u128

Performs the + operation. Read more
Source§

impl Add<One> for u16

Source§

type Output = u16

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> u16

Performs the + operation. Read more
Source§

impl Add<One> for u32

Source§

type Output = u32

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> u32

Performs the + operation. Read more
Source§

impl Add<One> for u64

Source§

type Output = u64

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> u64

Performs the + operation. Read more
Source§

impl Add<One> for u8

Source§

type Output = u8

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> u8

Performs the + operation. Read more
Source§

impl Add<One> for usize

Source§

type Output = usize

The resulting type after applying the + operator.
Source§

fn add(self, _: One) -> usize

Performs the + operation. Read more
Source§

impl<T: Add<One>> Add<T> for One

Source§

type Output = <T as Add<One>>::Output

The resulting type after applying the + operator.
Source§

fn add(self, other: T) -> Self::Output

Performs the + operation. Read more
Source§

impl BitAnd<Zero> for One

Source§

type Output = Zero

The resulting type after applying the & operator.
Source§

fn bitand(self, _: Zero) -> Zero

Performs the & operation. Read more
Source§

impl BitAnd for One

Source§

type Output = One

The resulting type after applying the & operator.
Source§

fn bitand(self, _: One) -> One

Performs the & operation. Read more
Source§

impl BitOr<Zero> for One

Source§

type Output = One

The resulting type after applying the | operator.
Source§

fn bitor(self, _: Zero) -> One

Performs the | operation. Read more
Source§

impl BitOr for One

Source§

type Output = One

The resulting type after applying the | operator.
Source§

fn bitor(self, _: One) -> One

Performs the | operation. Read more
Source§

impl BitXor<One> for Zero

Source§

type Output = One

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, _: One) -> One

Performs the ^ operation. Read more
Source§

impl BitXor<Zero> for One

Source§

type Output = One

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, _: Zero) -> One

Performs the ^ operation. Read more
Source§

impl BitXor for One

Source§

type Output = Zero

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, _: One) -> Zero

Performs the ^ operation. Read more
Source§

impl Clone for One

Source§

fn clone(&self) -> One

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for One

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for One

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Div<One> for Zero

Source§

type Output = Zero

The resulting type after applying the / operator.
Source§

fn div(self, _: One) -> Zero

Performs the / operation. Read more
Source§

impl Div for One

Source§

type Output = One

The resulting type after applying the / operator.
Source§

fn div(self, _: One) -> One

Performs the / operation. Read more
Source§

impl From<One> for NonZeroI128

Source§

fn from(_: One) -> NonZeroI128

Converts to this type from the input type.
Source§

impl From<One> for NonZeroI16

Source§

fn from(_: One) -> NonZeroI16

Converts to this type from the input type.
Source§

impl From<One> for NonZeroI32

Source§

fn from(_: One) -> NonZeroI32

Converts to this type from the input type.
Source§

impl From<One> for NonZeroI64

Source§

fn from(_: One) -> NonZeroI64

Converts to this type from the input type.
Source§

impl From<One> for NonZeroI8

Source§

fn from(_: One) -> NonZeroI8

Converts to this type from the input type.
Source§

impl From<One> for NonZeroIsize

Source§

fn from(_: One) -> NonZeroIsize

Converts to this type from the input type.
Source§

impl From<One> for NonZeroU128

Source§

fn from(_: One) -> NonZeroU128

Converts to this type from the input type.
Source§

impl From<One> for NonZeroU16

Source§

fn from(_: One) -> NonZeroU16

Converts to this type from the input type.
Source§

impl From<One> for NonZeroU32

Source§

fn from(_: One) -> NonZeroU32

Converts to this type from the input type.
Source§

impl From<One> for NonZeroU64

Source§

fn from(_: One) -> NonZeroU64

Converts to this type from the input type.
Source§

impl From<One> for NonZeroU8

Source§

fn from(_: One) -> NonZeroU8

Converts to this type from the input type.
Source§

impl From<One> for NonZeroUsize

Source§

fn from(_: One) -> NonZeroUsize

Converts to this type from the input type.
Source§

impl From<One> for i128

Source§

fn from(_: One) -> i128

Converts to this type from the input type.
Source§

impl From<One> for i16

Source§

fn from(_: One) -> i16

Converts to this type from the input type.
Source§

impl From<One> for i32

Source§

fn from(_: One) -> i32

Converts to this type from the input type.
Source§

impl From<One> for i64

Source§

fn from(_: One) -> i64

Converts to this type from the input type.
Source§

impl From<One> for i8

Source§

fn from(_: One) -> i8

Converts to this type from the input type.
Source§

impl From<One> for isize

Source§

fn from(_: One) -> isize

Converts to this type from the input type.
Source§

impl From<One> for u128

Source§

fn from(_: One) -> u128

Converts to this type from the input type.
Source§

impl From<One> for u16

Source§

fn from(_: One) -> u16

Converts to this type from the input type.
Source§

impl From<One> for u32

Source§

fn from(_: One) -> u32

Converts to this type from the input type.
Source§

impl From<One> for u64

Source§

fn from(_: One) -> u64

Converts to this type from the input type.
Source§

impl From<One> for u8

Source§

fn from(_: One) -> u8

Converts to this type from the input type.
Source§

impl From<One> for usize

Source§

fn from(_: One) -> usize

Converts to this type from the input type.
Source§

impl Hash for One

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T> Mul<T> for One

Source§

type Output = T

The resulting type after applying the * operator.
Source§

fn mul(self, other: T) -> T

Performs the * operation. Read more
Source§

impl Ord for One

Source§

fn cmp(&self, other: &One) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq<One> for i128

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for i16

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for i32

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for i64

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for i8

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for isize

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for u128

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for u16

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for u32

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for u64

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for u8

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<One> for usize

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i128> for One

Source§

fn eq(&self, other: &i128) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i16> for One

Source§

fn eq(&self, other: &i16) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i32> for One

Source§

fn eq(&self, other: &i32) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i64> for One

Source§

fn eq(&self, other: &i64) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i8> for One

Source§

fn eq(&self, other: &i8) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<isize> for One

Source§

fn eq(&self, other: &isize) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u128> for One

Source§

fn eq(&self, other: &u128) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u16> for One

Source§

fn eq(&self, other: &u16) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u32> for One

Source§

fn eq(&self, other: &u32) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u64> for One

Source§

fn eq(&self, other: &u64) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u8> for One

Source§

fn eq(&self, other: &u8) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<usize> for One

Source§

fn eq(&self, other: &usize) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for One

Source§

fn eq(&self, other: &One) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd<One> for i128

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for i16

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for i32

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for i64

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for i8

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for isize

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for u128

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for u16

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for u32

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for u64

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for u8

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<One> for usize

Source§

fn partial_cmp(&self, _other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i128> for One

Source§

fn partial_cmp(&self, other: &i128) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i16> for One

Source§

fn partial_cmp(&self, other: &i16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i32> for One

Source§

fn partial_cmp(&self, other: &i32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i64> for One

Source§

fn partial_cmp(&self, other: &i64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i8> for One

Source§

fn partial_cmp(&self, other: &i8) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<isize> for One

Source§

fn partial_cmp(&self, other: &isize) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u128> for One

Source§

fn partial_cmp(&self, other: &u128) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u16> for One

Source§

fn partial_cmp(&self, other: &u16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u32> for One

Source§

fn partial_cmp(&self, other: &u32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u64> for One

Source§

fn partial_cmp(&self, other: &u64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u8> for One

Source§

fn partial_cmp(&self, other: &u8) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<usize> for One

Source§

fn partial_cmp(&self, other: &usize) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd for One

Source§

fn partial_cmp(&self, other: &One) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Rem<One> for Zero

Source§

type Output = Zero

The resulting type after applying the % operator.
Source§

fn rem(self, _: One) -> Zero

Performs the % operation. Read more
Source§

impl Rem for One

Source§

type Output = Zero

The resulting type after applying the % operator.
Source§

fn rem(self, _: One) -> Zero

Performs the % operation. Read more
Source§

impl Shl<One> for Zero

Source§

type Output = Zero

The resulting type after applying the << operator.
Source§

fn shl(self, _: One) -> Zero

Performs the << operation. Read more
Source§

impl Shl<Zero> for One

Source§

type Output = One

The resulting type after applying the << operator.
Source§

fn shl(self, _: Zero) -> One

Performs the << operation. Read more
Source§

impl Shr<One> for Zero

Source§

type Output = Zero

The resulting type after applying the >> operator.
Source§

fn shr(self, _: One) -> Zero

Performs the >> operation. Read more
Source§

impl Shr<Zero> for One

Source§

type Output = One

The resulting type after applying the >> operator.
Source§

fn shr(self, _: Zero) -> One

Performs the >> operation. Read more
Source§

impl Shr for One

Source§

type Output = Zero

The resulting type after applying the >> operator.
Source§

fn shr(self, _: One) -> Zero

Performs the >> operation. Read more
Source§

impl Sub<Zero> for One

Source§

type Output = One

The resulting type after applying the - operator.
Source§

fn sub(self, _: Zero) -> One

Performs the - operation. Read more
Source§

impl Sub for One

Source§

type Output = Zero

The resulting type after applying the - operator.
Source§

fn sub(self, _: One) -> Zero

Performs the - operation. Read more
Source§

impl TryFrom<NonZero<i128>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroI128) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<i16>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroI16) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<i32>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroI32) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<i64>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroI64) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<i8>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroI8) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<isize>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroIsize) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<u128>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroU128) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<u16>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroU16) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<u32>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroU32) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<u64>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroU64) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<u8>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroU8) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NonZero<usize>> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: NonZeroUsize) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i128> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: i128) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i16> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: i16) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i32> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: i32) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i64> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: i64) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i8> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: i8) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<isize> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: isize) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u128> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: u128) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u16> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: u16) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: u32) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u64> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: u64) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u8> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: u8) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl TryFrom<usize> for One

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(other: usize) -> Result<One, Self::Error>

Performs the conversion.
Source§

impl Copy for One

Source§

impl Eq for One

Source§

impl StructuralPartialEq for One

Auto Trait Implementations§

§

impl Freeze for One

§

impl RefUnwindSafe for One

§

impl Send for One

§

impl Sync for One

§

impl Unpin for One

§

impl UnwindSafe for One

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.