Struct component_ethereum::types::web3::U128
[−]Expand description
Little-endian large integer type 128-bit unsigned integer.
Tuple Fields
0: [u64; 2]
Implementations
impl U128
impl U128
pub fn from_str_radix(txt: &str, radix: u32) -> Result<U128, FromStrRadixErr>
pub fn from_str_radix(txt: &str, radix: u32) -> Result<U128, FromStrRadixErr>
Converts a string slice in a given base to an integer. Only supports radixes of 10 and 16.
pub fn from_dec_str(value: &str) -> Result<U128, FromDecStrErr>
pub fn from_dec_str(value: &str) -> Result<U128, FromDecStrErr>
Convert from a decimal string.
pub fn as_u64(&self) -> u64
pub fn as_u64(&self) -> u64
Conversion to u64 with overflow checking
Panics
Panics if the number is larger than u64::max_value().
pub fn as_usize(&self) -> usize
pub fn as_usize(&self) -> usize
Conversion to usize with overflow checking
Panics
Panics if the number is larger than usize::max_value().
pub fn leading_zeros(&self) -> u32
pub fn leading_zeros(&self) -> u32
Returns the number of leading zeros in the binary representation of self.
pub fn trailing_zeros(&self) -> u32
pub fn trailing_zeros(&self) -> u32
Returns the number of trailing zeros in the binary representation of self.
pub fn to_big_endian(&self, bytes: &mut [u8])
pub fn to_big_endian(&self, bytes: &mut [u8])
Write to the slice in big-endian format.
pub fn to_little_endian(&self, bytes: &mut [u8])
pub fn to_little_endian(&self, bytes: &mut [u8])
Write to the slice in little-endian format.
pub fn integer_sqrt(&self) -> U128
pub fn integer_sqrt(&self) -> U128
Compute the highest n
such that n * n <= self
.
pub fn pow(self, expon: U128) -> U128
pub fn pow(self, expon: U128) -> U128
Fast exponentiation by squaring https://en.wikipedia.org/wiki/Exponentiation_by_squaring
Panics
Panics if the result overflows the type.
pub fn overflowing_pow(self, expon: U128) -> (U128, bool)
pub fn overflowing_pow(self, expon: U128) -> (U128, bool)
Fast exponentiation by squaring. Returns result and overflow flag.
pub fn checked_pow(self, expon: U128) -> Option<U128>
pub fn checked_pow(self, expon: U128) -> Option<U128>
Checked exponentiation. Returns None
if overflow occurred.
pub fn overflowing_add(self, other: U128) -> (U128, bool)
pub fn overflowing_add(self, other: U128) -> (U128, bool)
Addition which overflows and returns a flag if it does.
pub fn saturating_add(self, other: U128) -> U128
pub fn saturating_add(self, other: U128) -> U128
Addition which saturates at the maximum value (Self::MAX).
pub fn checked_add(self, other: U128) -> Option<U128>
pub fn checked_add(self, other: U128) -> Option<U128>
Checked addition. Returns None
if overflow occurred.
pub fn overflowing_sub(self, other: U128) -> (U128, bool)
pub fn overflowing_sub(self, other: U128) -> (U128, bool)
Subtraction which underflows and returns a flag if it does.
pub fn saturating_sub(self, other: U128) -> U128
pub fn saturating_sub(self, other: U128) -> U128
Subtraction which saturates at zero.
pub fn checked_sub(self, other: U128) -> Option<U128>
pub fn checked_sub(self, other: U128) -> Option<U128>
Checked subtraction. Returns None
if overflow occurred.
pub fn overflowing_mul(self, other: U128) -> (U128, bool)
pub fn overflowing_mul(self, other: U128) -> (U128, bool)
Multiply with overflow, returning a flag if it does.
pub fn saturating_mul(self, other: U128) -> U128
pub fn saturating_mul(self, other: U128) -> U128
Multiplication which saturates at the maximum value..
pub fn checked_mul(self, other: U128) -> Option<U128>
pub fn checked_mul(self, other: U128) -> Option<U128>
Checked multiplication. Returns None
if overflow occurred.
pub fn checked_div(self, other: U128) -> Option<U128>
pub fn checked_div(self, other: U128) -> Option<U128>
Checked division. Returns None
if other == 0
.
pub fn checked_rem(self, other: U128) -> Option<U128>
pub fn checked_rem(self, other: U128) -> Option<U128>
Checked modulus. Returns None
if other == 0
.
pub fn overflowing_neg(self) -> (U128, bool)
pub fn overflowing_neg(self) -> (U128, bool)
Negation with overflow.
pub fn checked_neg(self) -> Option<U128>
pub fn checked_neg(self) -> Option<U128>
Checked negation. Returns None
unless self == 0
.
pub fn from_big_endian(slice: &[u8]) -> U128
pub fn from_big_endian(slice: &[u8]) -> U128
Converts from big endian representation bytes in memory.
pub fn from_little_endian(slice: &[u8]) -> U128
pub fn from_little_endian(slice: &[u8]) -> U128
Converts from little endian representation bytes in memory.
Trait Implementations
impl AddAssign<U128> for U128
impl AddAssign<U128> for U128
fn add_assign(&mut self, other: U128)
fn add_assign(&mut self, other: U128)
Performs the +=
operation. Read more
impl Decodable for U128
impl Decodable for U128
impl Decode for U128
impl Decode for U128
fn decode<I>(input: &mut I) -> Result<U128, Error> where
I: Input,
fn decode<I>(input: &mut I) -> Result<U128, Error> where
I: Input,
Attempt to deserialise the value from input.
fn skip<I>(input: &mut I) -> Result<(), Error> where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error> where
I: Input,
Attempt to skip the encoded value from input. Read more
fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
impl<'de> Deserialize<'de> for U128
impl<'de> Deserialize<'de> for U128
fn deserialize<D>(
deserializer: D
) -> Result<U128, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<U128, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> DivAssign<T> for U128 where
T: Into<U128>,
impl<T> DivAssign<T> for U128 where
T: Into<U128>,
fn div_assign(&mut self, other: T)
fn div_assign(&mut self, other: T)
Performs the /=
operation. Read more
impl Encodable for U128
impl Encodable for U128
fn rlp_append(&self, s: &mut RlpStream)
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
fn rlp_bytes(&self) -> BytesMut
fn rlp_bytes(&self) -> BytesMut
Get rlp-encoded bytes for this instance
impl Encode for U128
impl Encode for U128
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
fn encode_to<T>(&self, dest: &mut T) where
T: Output + ?Sized,
fn encode_to<T>(&self, dest: &mut T) where
T: Output + ?Sized,
Convert self to a slice and append it to the destination.
fn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Convert self to an owned vector.
fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
impl MaxEncodedLen for U128
impl MaxEncodedLen for U128
fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
impl MulAssign<U128> for U128
impl MulAssign<U128> for U128
fn mul_assign(&mut self, other: U128)
fn mul_assign(&mut self, other: U128)
Performs the *=
operation. Read more
impl MulAssign<i16> for U128
impl MulAssign<i16> for U128
fn mul_assign(&mut self, other: i16)
fn mul_assign(&mut self, other: i16)
Performs the *=
operation. Read more
impl MulAssign<i32> for U128
impl MulAssign<i32> for U128
fn mul_assign(&mut self, other: i32)
fn mul_assign(&mut self, other: i32)
Performs the *=
operation. Read more
impl MulAssign<i64> for U128
impl MulAssign<i64> for U128
fn mul_assign(&mut self, other: i64)
fn mul_assign(&mut self, other: i64)
Performs the *=
operation. Read more
impl MulAssign<isize> for U128
impl MulAssign<isize> for U128
fn mul_assign(&mut self, other: isize)
fn mul_assign(&mut self, other: isize)
Performs the *=
operation. Read more
impl MulAssign<u16> for U128
impl MulAssign<u16> for U128
fn mul_assign(&mut self, other: u16)
fn mul_assign(&mut self, other: u16)
Performs the *=
operation. Read more
impl MulAssign<u32> for U128
impl MulAssign<u32> for U128
fn mul_assign(&mut self, other: u32)
fn mul_assign(&mut self, other: u32)
Performs the *=
operation. Read more
impl MulAssign<u64> for U128
impl MulAssign<u64> for U128
fn mul_assign(&mut self, other: u64)
fn mul_assign(&mut self, other: u64)
Performs the *=
operation. Read more
impl MulAssign<usize> for U128
impl MulAssign<usize> for U128
fn mul_assign(&mut self, other: usize)
fn mul_assign(&mut self, other: usize)
Performs the *=
operation. Read more
impl Ord for U128
impl Ord for U128
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialOrd<U128> for U128
impl PartialOrd<U128> for U128
fn partial_cmp(&self, other: &U128) -> Option<Ordering>
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 · 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
impl<T> RemAssign<T> for U128 where
T: Into<U128> + Copy,
impl<T> RemAssign<T> for U128 where
T: Into<U128> + Copy,
fn rem_assign(&mut self, other: T)
fn rem_assign(&mut self, other: T)
Performs the %=
operation. Read more
impl Serialize for U128
impl Serialize for U128
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> ShlAssign<T> for U128 where
T: Into<U128>,
impl<T> ShlAssign<T> for U128 where
T: Into<U128>,
fn shl_assign(&mut self, shift: T)
fn shl_assign(&mut self, shift: T)
Performs the <<=
operation. Read more
impl<T> ShrAssign<T> for U128 where
T: Into<U128>,
impl<T> ShrAssign<T> for U128 where
T: Into<U128>,
fn shr_assign(&mut self, shift: T)
fn shr_assign(&mut self, shift: T)
Performs the >>=
operation. Read more
impl SubAssign<U128> for U128
impl SubAssign<U128> for U128
fn sub_assign(&mut self, other: U128)
fn sub_assign(&mut self, other: U128)
Performs the -=
operation. Read more
impl Tokenizable for U128
impl Tokenizable for U128
fn from_token(token: Token) -> Result<U128, Error>
fn from_token(token: Token) -> Result<U128, Error>
Converts a Token
into expected type.
fn into_token(self) -> Token
fn into_token(self) -> Token
Converts a specified type back into token.
impl Copy for U128
impl EncodeLike<U128> for U128
impl Eq for U128
impl StructuralEq for U128
impl StructuralPartialEq for U128
impl TokenizableItem for U128
Auto Trait Implementations
impl RefUnwindSafe for U128
impl Send for U128
impl Sync for U128
impl Unpin for U128
impl UnwindSafe for U128
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
impl<T> DecodeAll for T where
T: Decode,
impl<T> DecodeAll for T where
T: Decode,
fn decode_all(input: &[u8]) -> Result<T, Error>
fn decode_all(input: &[u8]) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
impl<T> DecodeLimit for T where
T: Decode,
impl<T> DecodeLimit for T where
T: Decode,
fn decode_all_with_depth_limit(limit: u32, input: &[u8]) -> Result<T, Error>
fn decode_all_with_depth_limit(limit: u32, input: &[u8]) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more
fn decode_and_advance_with_depth_limit<I>(
limit: u32,
input: &mut I
) -> Result<T, Error> where
I: Input,
fn decode_and_advance_with_depth_limit<I>(
limit: u32,
input: &mut I
) -> Result<T, Error> where
I: Input,
Decode Self
and advance input
by the number of bytes consumed. Read more
fn decode_with_depth_limit(limit: u32, input: &[u8]) -> Result<T, Error>
fn decode_with_depth_limit(limit: u32, input: &[u8]) -> Result<T, Error>
Decode Self
with the given maximum recursion depth. Read more
impl<T> Detokenize for T where
T: Tokenizable,
impl<T> Detokenize for T where
T: Tokenizable,
fn from_tokens(tokens: Vec<Token, Global>) -> Result<T, Error>
fn from_tokens(tokens: Vec<Token, Global>) -> Result<T, Error>
Creates a new instance from parsed ABI tokens.
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<D> OwoColorize for D
impl<D> OwoColorize for D
fn fg<C>(&'a self) -> FgColorDisplay<'a, C, Self> where
C: Color,
fn fg<C>(&'a self) -> FgColorDisplay<'a, C, Self> where
C: Color,
Set the foreground color generically Read more
fn bg<C>(&'a self) -> BgColorDisplay<'a, C, Self> where
C: Color,
fn bg<C>(&'a self) -> BgColorDisplay<'a, C, Self> where
C: Color,
Set the background color generically. Read more
fn black(&'a self) -> FgColorDisplay<'a, Black, Self>
fn black(&'a self) -> FgColorDisplay<'a, Black, Self>
Change the foreground color to black
fn on_black(&'a self) -> BgColorDisplay<'a, Black, Self>
fn on_black(&'a self) -> BgColorDisplay<'a, Black, Self>
Change the foreground color to black
fn red(&'a self) -> FgColorDisplay<'a, Red, Self>
fn red(&'a self) -> FgColorDisplay<'a, Red, Self>
Change the foreground color to red
fn on_red(&'a self) -> BgColorDisplay<'a, Red, Self>
fn on_red(&'a self) -> BgColorDisplay<'a, Red, Self>
Change the foreground color to red
fn green(&'a self) -> FgColorDisplay<'a, Green, Self>
fn green(&'a self) -> FgColorDisplay<'a, Green, Self>
Change the foreground color to green
fn on_green(&'a self) -> BgColorDisplay<'a, Green, Self>
fn on_green(&'a self) -> BgColorDisplay<'a, Green, Self>
Change the foreground color to green
fn yellow(&'a self) -> FgColorDisplay<'a, Yellow, Self>
fn yellow(&'a self) -> FgColorDisplay<'a, Yellow, Self>
Change the foreground color to yellow
fn on_yellow(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow(&'a self) -> BgColorDisplay<'a, Yellow, Self>
Change the foreground color to yellow
fn blue(&'a self) -> FgColorDisplay<'a, Blue, Self>
fn blue(&'a self) -> FgColorDisplay<'a, Blue, Self>
Change the foreground color to blue
fn on_blue(&'a self) -> BgColorDisplay<'a, Blue, Self>
fn on_blue(&'a self) -> BgColorDisplay<'a, Blue, Self>
Change the foreground color to blue
fn magenta(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta(&'a self) -> FgColorDisplay<'a, Magenta, Self>
Change the foreground color to magenta
fn on_magenta(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta(&'a self) -> BgColorDisplay<'a, Magenta, Self>
Change the foreground color to magenta
fn purple(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn purple(&'a self) -> FgColorDisplay<'a, Magenta, Self>
Change the foreground color to purple
fn on_purple(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple(&'a self) -> BgColorDisplay<'a, Magenta, Self>
Change the foreground color to purple
fn cyan(&'a self) -> FgColorDisplay<'a, Cyan, Self>
fn cyan(&'a self) -> FgColorDisplay<'a, Cyan, Self>
Change the foreground color to cyan
fn on_cyan(&'a self) -> BgColorDisplay<'a, Cyan, Self>
fn on_cyan(&'a self) -> BgColorDisplay<'a, Cyan, Self>
Change the foreground color to cyan
fn white(&'a self) -> FgColorDisplay<'a, White, Self>
fn white(&'a self) -> FgColorDisplay<'a, White, Self>
Change the foreground color to white
fn on_white(&'a self) -> BgColorDisplay<'a, White, Self>
fn on_white(&'a self) -> BgColorDisplay<'a, White, Self>
Change the foreground color to white
fn bright_black(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
Change the foreground color to bright black
fn on_bright_black(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
Change the foreground color to bright black
fn bright_red(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
Change the foreground color to bright red
fn on_bright_red(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
Change the foreground color to bright red
fn bright_green(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
Change the foreground color to bright green
fn on_bright_green(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
Change the foreground color to bright green
fn bright_yellow(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
Change the foreground color to bright yellow
fn on_bright_yellow(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
Change the foreground color to bright yellow
fn bright_blue(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
Change the foreground color to bright blue
fn on_bright_blue(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
Change the foreground color to bright blue
fn bright_magenta(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright magenta
fn on_bright_magenta(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright magenta
fn bright_purple(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright purple
fn on_bright_purple(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright purple
fn bright_cyan(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
Change the foreground color to bright cyan
fn on_bright_cyan(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
Change the foreground color to bright cyan
fn bright_white(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
Change the foreground color to bright white
fn on_bright_white(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
Change the foreground color to bright white
fn bold(&'a self) -> BoldDisplay<'a, Self>
fn bold(&'a self) -> BoldDisplay<'a, Self>
Make the text bold
fn dimmed(&'a self) -> DimDisplay<'a, Self>
fn dimmed(&'a self) -> DimDisplay<'a, Self>
Make the text dim
fn italic(&'a self) -> ItalicDisplay<'a, Self>
fn italic(&'a self) -> ItalicDisplay<'a, Self>
Make the text italicized
fn underline(&'a self) -> UnderlineDisplay<'a, Self>
fn underline(&'a self) -> UnderlineDisplay<'a, Self>
Make the text italicized
fn blink(&'a self) -> BlinkDisplay<'a, Self>
fn blink(&'a self) -> BlinkDisplay<'a, Self>
Make the text blink
fn blink_fast(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast(&'a self) -> BlinkFastDisplay<'a, Self>
Make the text blink (but fast!)
fn reversed(&'a self) -> ReversedDisplay<'a, Self>
fn reversed(&'a self) -> ReversedDisplay<'a, Self>
Swap the foreground and background colors
Hide the text
fn strikethrough(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough(&'a self) -> StrikeThroughDisplay<'a, Self>
Cross out the text
fn color<Color>(&'a self, color: Color) -> FgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
fn color<Color>(&'a self, color: Color) -> FgDynColorDisplay<'a, 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
fn on_color<Color>(&'a self, color: Color) -> BgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
fn on_color<Color>(&'a self, color: Color) -> BgDynColorDisplay<'a, 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
fn truecolor(&'a self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'a, Rgb, Self>
fn truecolor(&'a self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'a, Rgb, Self>
Sets the foreground color to an RGB value.
fn on_truecolor(&'a self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'a, Rgb, Self>
fn on_truecolor(&'a self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'a, Rgb, Self>
Sets the background color to an RGB value.
sourceimpl<T> SectionExt for T where
T: 'static + Display + Send + Sync,
impl<T> SectionExt for T where
T: 'static + Display + Send + Sync,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more