pub struct UTerm;
Expand description

The terminating type for UInt; it always comes after the most significant bit. UTerm by itself represents zero, which is aliased to U0.

Implementations§

source§

impl UTerm

source

pub fn new() -> UTerm

Instantiates a singleton representing this unsigned integer.

Trait Implementations§

source§

impl Add<B0> for UTerm

UTerm + B0 = UTerm

§

type Output = UTerm

The resulting type after applying the + operator.
source§

fn add(self, _: B0) -> <UTerm as Add<B0>>::Output

Performs the + operation. Read more
source§

impl Add<B1> for UTerm

UTerm + B1 = UInt<UTerm, B1>

§

type Output = UInt<UTerm, B1>

The resulting type after applying the + operator.
source§

fn add(self, _: B1) -> <UTerm as Add<B1>>::Output

Performs the + operation. Read more
source§

impl<U> Add<U> for UTerm
where U: Unsigned,

UTerm + U = U

§

type Output = U

The resulting type after applying the + operator.
source§

fn add(self, rhs: U) -> <UTerm as Add<U>>::Output

Performs the + operation. Read more
source§

impl<U, B> Add<UTerm> for UInt<U, B>
where U: Unsigned, B: Bit,

UInt<U, B> + UTerm = UInt<U, B>

§

type Output = UInt<U, B>

The resulting type after applying the + operator.
source§

fn add(self, _: UTerm) -> <UInt<U, B> as Add<UTerm>>::Output

Performs the + operation. Read more
source§

impl<T> ArrayLength<T> for UTerm

§

type ArrayType

Associated type representing the array type for the number
source§

impl<Ur> BitAnd<Ur> for UTerm
where Ur: Unsigned,

0 & X = 0

§

type Output = UTerm

The resulting type after applying the & operator.
source§

fn bitand(self, _: Ur) -> <UTerm as BitAnd<Ur>>::Output

Performs the & operation. Read more
source§

impl<U> BitOr<U> for UTerm
where U: Unsigned,

UTerm | X = X

§

type Output = U

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: U) -> <UTerm as BitOr<U>>::Output

Performs the | operation. Read more
source§

impl<B, U> BitOr<UTerm> for UInt<U, B>
where B: Bit, U: Unsigned,

X | UTerm = X

§

type Output = UInt<U, B>

The resulting type after applying the | operator.
source§

fn bitor(self, _: UTerm) -> <UInt<U, B> as BitOr<UTerm>>::Output

Performs the | operation. Read more
source§

impl<Ur> BitXor<Ur> for UTerm
where Ur: Unsigned,

0 ^ X = X

§

type Output = Ur

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Ur) -> <UTerm as BitXor<Ur>>::Output

Performs the ^ operation. Read more
source§

impl Clone for UTerm

source§

fn clone(&self) -> UTerm

Returns a copy 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<U, B> Cmp<UInt<U, B>> for UTerm
where U: Unsigned, B: Bit,

Zero < Nonzero

§

type Output = Less

The result of the comparison. It should only ever be one of Greater, Less, or Equal.
source§

impl<U, B> Cmp<UTerm> for UInt<U, B>
where U: Unsigned, B: Bit,

Nonzero > Zero

§

type Output = Greater

The result of the comparison. It should only ever be one of Greater, Less, or Equal.
source§

impl Cmp for UTerm

Zero == Zero

§

type Output = Equal

The result of the comparison. It should only ever be one of Greater, Less, or Equal.
source§

impl Debug for UTerm

source§

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

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

impl Default for UTerm

source§

fn default() -> UTerm

Returns the “default value” for a type. Read more
source§

impl<Ur, Br> Div<UInt<Ur, Br>> for UTerm
where Ur: Unsigned, Br: Bit,

§

type Output = UTerm

The resulting type after applying the / operator.
source§

fn div(self, _: UInt<Ur, Br>) -> <UTerm as Div<UInt<Ur, Br>>>::Output

Performs the / operation. Read more
source§

impl Gcd<UTerm> for UTerm

gcd(0, 0) = 0

§

type Output = UTerm

The greatest common divisor.
source§

impl<Y> Gcd<Y> for UTerm
where Y: Unsigned + NonZero,

gcd(0, y) = y

§

type Output = Y

The greatest common divisor.
source§

impl<I> GetBit<I> for UTerm

§

type Output = B0

source§

impl<Un, Bn> GetBit<UTerm> for UInt<Un, Bn>
where Bn: Copy,

§

type Output = Bn

source§

impl Hash for UTerm

source§

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

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 Len for UTerm

Length of UTerm by itself is 0

§

type Output = UTerm

The length as a type-level unsigned integer.
source§

fn len(&self) -> <UTerm as Len>::Output

This function isn’t used in this crate, but may be useful for others.
source§

impl<U> Max<U> for UTerm
where U: Unsigned,

§

type Output = U

The type of the maximum of Self and Rhs
source§

fn max(self, rhs: U) -> <UTerm as Max<U>>::Output

Method returning the maximum
source§

impl<U> Min<U> for UTerm
where U: Unsigned,

§

type Output = UTerm

The type of the minimum of Self and Rhs
source§

fn min(self, _: U) -> <UTerm as Min<U>>::Output

Method returning the minimum
source§

impl Mul<B0> for UTerm

UTerm * B0 = UTerm

§

type Output = UTerm

The resulting type after applying the * operator.
source§

fn mul(self, _: B0) -> <UTerm as Mul<B0>>::Output

Performs the * operation. Read more
source§

impl Mul<B1> for UTerm

UTerm * B1 = UTerm

§

type Output = UTerm

The resulting type after applying the * operator.
source§

fn mul(self, _: B1) -> <UTerm as Mul<B1>>::Output

Performs the * operation. Read more
source§

impl<U> Mul<U> for UTerm
where U: Unsigned,

UTerm * U = UTerm

§

type Output = UTerm

The resulting type after applying the * operator.
source§

fn mul(self, _: U) -> <UTerm as Mul<U>>::Output

Performs the * operation. Read more
source§

impl<U, B> Mul<UTerm> for UInt<U, B>
where U: Unsigned, B: Bit,

UInt<U, B> * UTerm = UTerm

§

type Output = UTerm

The resulting type after applying the * operator.
source§

fn mul(self, _: UTerm) -> <UInt<U, B> as Mul<UTerm>>::Output

Performs the * operation. Read more
source§

impl Ord for UTerm

source§

fn cmp(&self, other: &UTerm) -> 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 + PartialOrd,

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

impl<Ur, Br> PartialDiv<UInt<Ur, Br>> for UTerm
where Ur: Unsigned, Br: Bit,

§

type Output = UTerm

The type of the result of the division
source§

fn partial_div( self, _: UInt<Ur, Br> ) -> <UTerm as PartialDiv<UInt<Ur, Br>>>::Output

Method for performing the division
source§

impl PartialEq for UTerm

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for UTerm

source§

fn partial_cmp(&self, other: &UTerm) -> 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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Pow<UTerm> for f32

§

type Output = f32

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <f32 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for f64

§

type Output = f64

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <f64 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for i16

§

type Output = i16

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <i16 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for i32

§

type Output = i32

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <i32 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for i64

§

type Output = i64

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <i64 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for i8

§

type Output = i8

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <i8 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for isize

§

type Output = isize

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <isize as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for u16

§

type Output = u16

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <u16 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for u32

§

type Output = u32

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <u32 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for u64

§

type Output = u64

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <u64 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for u8

§

type Output = u8

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <u8 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl Pow<UTerm> for usize

§

type Output = usize

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> <usize as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl<Ur, Br> Rem<UInt<Ur, Br>> for UTerm
where Ur: Unsigned, Br: Bit,

§

type Output = UTerm

The resulting type after applying the % operator.
source§

fn rem(self, _: UInt<Ur, Br>) -> <UTerm as Rem<UInt<Ur, Br>>>::Output

Performs the % operation. Read more
source§

impl Shl<B0> for UTerm

Shifting UTerm by a 0 bit: UTerm << B0 = UTerm

§

type Output = UTerm

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

fn shl(self, _: B0) -> <UTerm as Shl<B0>>::Output

Performs the << operation. Read more
source§

impl Shl<B1> for UTerm

Shifting UTerm by a 1 bit: UTerm << B1 = UTerm

§

type Output = UTerm

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

fn shl(self, _: B1) -> <UTerm as Shl<B1>>::Output

Performs the << operation. Read more
source§

impl<U> Shl<U> for UTerm
where U: Unsigned,

Shifting left UTerm by an unsigned integer: UTerm << U = UTerm

§

type Output = UTerm

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

fn shl(self, _: U) -> <UTerm as Shl<U>>::Output

Performs the << operation. Read more
source§

impl<U, B> Shl<UTerm> for UInt<U, B>
where U: Unsigned, B: Bit,

Shifting left UInt by UTerm: UInt<U, B> << UTerm = UInt<U, B>

§

type Output = UInt<U, B>

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

fn shl(self, _: UTerm) -> <UInt<U, B> as Shl<UTerm>>::Output

Performs the << operation. Read more
source§

impl Shr<B0> for UTerm

Shifting right UTerm by a 0 bit: UTerm >> B0 = UTerm

§

type Output = UTerm

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

fn shr(self, _: B0) -> <UTerm as Shr<B0>>::Output

Performs the >> operation. Read more
source§

impl Shr<B1> for UTerm

Shifting right UTerm by a 1 bit: UTerm >> B1 = UTerm

§

type Output = UTerm

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

fn shr(self, _: B1) -> <UTerm as Shr<B1>>::Output

Performs the >> operation. Read more
source§

impl<U> Shr<U> for UTerm
where U: Unsigned,

Shifting right a UTerm by an unsigned integer: UTerm >> U = UTerm

§

type Output = UTerm

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

fn shr(self, _: U) -> <UTerm as Shr<U>>::Output

Performs the >> operation. Read more
source§

impl<U, B> Shr<UTerm> for UInt<U, B>
where U: Unsigned, B: Bit,

Shifting right UInt by UTerm: UInt<U, B> >> UTerm = UInt<U, B>

§

type Output = UInt<U, B>

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

fn shr(self, _: UTerm) -> <UInt<U, B> as Shr<UTerm>>::Output

Performs the >> operation. Read more
source§

impl Sub<B0> for UTerm

UTerm - B0 = Term

§

type Output = UTerm

The resulting type after applying the - operator.
source§

fn sub(self, _: B0) -> <UTerm as Sub<B0>>::Output

Performs the - operation. Read more
source§

impl Sub for UTerm

UTerm - UTerm = UTerm

§

type Output = UTerm

The resulting type after applying the - operator.
source§

fn sub(self, _: UTerm) -> <UTerm as Sub>::Output

Performs the - operation. Read more
source§

impl ToInt<i16> for UTerm

source§

fn to_int() -> i16

Method returning the concrete value for the type.
source§

const INT: i16 = 0i16

The concrete value for the type. Can be used in const contexts.
source§

impl ToInt<i32> for UTerm

source§

fn to_int() -> i32

Method returning the concrete value for the type.
source§

const INT: i32 = 0i32

The concrete value for the type. Can be used in const contexts.
source§

impl ToInt<i64> for UTerm

source§

fn to_int() -> i64

Method returning the concrete value for the type.
source§

const INT: i64 = 0i64

The concrete value for the type. Can be used in const contexts.
source§

impl ToInt<i8> for UTerm

source§

fn to_int() -> i8

Method returning the concrete value for the type.
source§

const INT: i8 = 0i8

The concrete value for the type. Can be used in const contexts.
source§

impl ToInt<u16> for UTerm

source§

fn to_int() -> u16

Method returning the concrete value for the type.
source§

const INT: u16 = 0u16

The concrete value for the type. Can be used in const contexts.
source§

impl ToInt<u32> for UTerm

source§

fn to_int() -> u32

Method returning the concrete value for the type.
source§

const INT: u32 = 0u32

The concrete value for the type. Can be used in const contexts.
source§

impl ToInt<u64> for UTerm

source§

fn to_int() -> u64

Method returning the concrete value for the type.
source§

const INT: u64 = 0u64

The concrete value for the type. Can be used in const contexts.
source§

impl ToInt<u8> for UTerm

source§

fn to_int() -> u8

Method returning the concrete value for the type.
source§

const INT: u8 = 0u8

The concrete value for the type. Can be used in const contexts.
source§

impl ToInt<usize> for UTerm

source§

fn to_int() -> usize

Method returning the concrete value for the type.
source§

const INT: usize = 0usize

The concrete value for the type. Can be used in const contexts.
source§

impl Unsigned for UTerm

source§

const U8: u8 = 0u8

source§

const U16: u16 = 0u16

source§

const U32: u32 = 0u32

source§

const U64: u64 = 0u64

source§

const USIZE: usize = 0usize

source§

const I8: i8 = 0i8

source§

const I16: i16 = 0i16

source§

const I32: i32 = 0i32

source§

const I64: i64 = 0i64

source§

const ISIZE: isize = 0isize

source§

fn to_u8() -> u8

source§

fn to_u16() -> u16

source§

fn to_u32() -> u32

source§

fn to_u64() -> u64

source§

fn to_usize() -> usize

source§

fn to_i8() -> i8

source§

fn to_i16() -> i16

source§

fn to_i32() -> i32

source§

fn to_i64() -> i64

source§

fn to_isize() -> isize

source§

impl Copy for UTerm

source§

impl Eq for UTerm

source§

impl StructuralPartialEq for UTerm

source§

impl Zero for UTerm

Auto Trait Implementations§

§

impl Freeze for UTerm

§

impl RefUnwindSafe for UTerm

§

impl Send for UTerm

§

impl Sync for UTerm

§

impl Unpin for UTerm

§

impl UnwindSafe for UTerm

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> AsAny for T
where T: Any,

source§

fn as_any(&self) -> &(dyn Any + 'static)

Borrow this concrete type as a &dyn Any
source§

fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)

Borrow this concrete type as a &mut dyn Any
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<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<X> Gcd<UTerm> for X
where X: Unsigned + NonZero,

§

type Output = X

The greatest common divisor.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<D> OwoColorize for D

source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
source§

fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>

Change the foreground color to black
source§

fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>

Change the background color to black
source§

fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>

Change the foreground color to red
source§

fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>

Change the background color to red
source§

fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>

Change the foreground color to green
source§

fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>

Change the background color to green
source§

fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>

Change the foreground color to yellow
source§

fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>

Change the background color to yellow
source§

fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>

Change the foreground color to blue
source§

fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>

Change the background color to blue
source§

fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>

Change the foreground color to magenta
source§

fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>

Change the background color to magenta
source§

fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>

Change the foreground color to purple
source§

fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>

Change the background color to purple
source§

fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>

Change the foreground color to cyan
source§

fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>

Change the background color to cyan
source§

fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>

Change the foreground color to white
source§

fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>

Change the background color to white
source§

fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>

Change the foreground color to the terminal default
source§

fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>

Change the background color to the terminal default
source§

fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>

Change the foreground color to bright black
source§

fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>

Change the background color to bright black
source§

fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>

Change the foreground color to bright red
source§

fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>

Change the background color to bright red
source§

fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>

Change the foreground color to bright green
source§

fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>

Change the background color to bright green
source§

fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>

Change the foreground color to bright yellow
source§

fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>

Change the background color to bright yellow
source§

fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>

Change the foreground color to bright blue
source§

fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>

Change the background color to bright blue
source§

fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>

Change the foreground color to bright magenta
source§

fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>

Change the background color to bright magenta
source§

fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>

Change the foreground color to bright purple
source§

fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>

Change the background color to bright purple
source§

fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>

Change the foreground color to bright cyan
source§

fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>

Change the background color to bright cyan
source§

fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>

Change the foreground color to bright white
source§

fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>

Change the background color to bright white
source§

fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>

Make the text bold
source§

fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>

Make the text dim
source§

fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>

Make the text italicized
source§

fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>

Make the text italicized
Make the text blink
Make the text blink (but fast!)
source§

fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>

Swap the foreground and background colors
source§

fn hidden<'a>(&'a self) -> HiddenDisplay<'a, Self>

Hide the text
source§

fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>

Cross out the text
source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
source§

impl<X, N> Pow<N> for X
where X: Unsigned + PrivatePow<UInt<UTerm, B1>, N>, N: Unsigned,

§

type Output = <X as PrivatePow<UInt<UTerm, B1>, N>>::Output

The result of the exponentiation.
source§

fn powi(self, n: N) -> <X as Pow<N>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<N, I, B> SetBit<I, B> for N
where N: PrivateSetBit<I, B>, <N as PrivateSetBit<I, B>>::Output: Trim,

§

type Output = <<N as PrivateSetBit<I, B>>::Output as Trim>::Output

source§

fn set_bit<IM>(self, i: I, b: B) -> <N as SetBit<I, B>>::Output
where IM: InternalMarker,

source§

impl<N> SquareRoot for N
where N: PrivateSquareRoot,

§

type Output = <N as PrivateSquareRoot>::Output

The result of the integer square root.
source§

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

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more