pub struct ThreeMomentum<T> {
pub px: T,
pub py: T,
pub pz: T,
}Fields§
§px: T§py: T§pz: TTrait Implementations§
Source§impl<T> Add for ThreeMomentum<T>where
T: Add<T, Output = T>,
impl<T> Add for ThreeMomentum<T>where
T: Add<T, Output = T>,
Source§type Output = ThreeMomentum<T>
type Output = ThreeMomentum<T>
The resulting type after applying the
+ operator.Source§impl<T> Add<&ThreeMomentum<T>> for ThreeMomentum<T>
impl<T> Add<&ThreeMomentum<T>> for ThreeMomentum<T>
Source§type Output = ThreeMomentum<T>
type Output = ThreeMomentum<T>
The resulting type after applying the
+ operator.Source§impl<'b, T> Add<&ThreeMomentum<T>> for &'b ThreeMomentum<T>
impl<'b, T> Add<&ThreeMomentum<T>> for &'b ThreeMomentum<T>
Source§type Output = ThreeMomentum<T>
type Output = ThreeMomentum<T>
The resulting type after applying the
+ operator.Source§impl<T> Add<ThreeMomentum<T>> for &ThreeMomentum<T>
impl<T> Add<ThreeMomentum<T>> for &ThreeMomentum<T>
Source§type Output = ThreeMomentum<T>
type Output = ThreeMomentum<T>
The resulting type after applying the
+ operator.Source§impl<T> AddAssign for ThreeMomentum<T>where
T: AddAssign<T>,
impl<T> AddAssign for ThreeMomentum<T>where
T: AddAssign<T>,
Source§fn add_assign(&mut self, rhs: ThreeMomentum<T>)
fn add_assign(&mut self, rhs: ThreeMomentum<T>)
Performs the
+= operation. Read moreSource§impl<'a, T> AddAssign<&'a ThreeMomentum<T>> for ThreeMomentum<T>
impl<'a, T> AddAssign<&'a ThreeMomentum<T>> for ThreeMomentum<T>
Source§fn add_assign(&mut self, rhs: &'a ThreeMomentum<T>)
fn add_assign(&mut self, rhs: &'a ThreeMomentum<T>)
Performs the
+= operation. Read moreSource§impl<T: FloatLike> ApproxEq<ThreeMomentum<F<T>>, F<T>> for ThreeMomentum<F<T>>
impl<T: FloatLike> ApproxEq<ThreeMomentum<F<T>>, F<T>> for ThreeMomentum<F<T>>
fn approx_eq(&self, other: &ThreeMomentum<F<T>>, threshold: &F<T>) -> bool
fn approx_eq_slice(lhs: &[Self], rhs: &[U], tolerance: &T) -> boolwhere
Self: Sized,
fn approx_eq_iterator<'a, I, J>(lhs: I, rhs: J, tolerance: &'a T) -> bool
fn assert_approx_eq(&self, other: &U, tolerance: &T)
fn approx_eq_res(&self, other: &U, tolerance: &T) -> Result<()>
Source§impl<T: Clone> Clone for ThreeMomentum<T>
impl<T: Clone> Clone for ThreeMomentum<T>
Source§fn clone(&self) -> ThreeMomentum<T>
fn clone(&self) -> ThreeMomentum<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for ThreeMomentum<T>
Source§impl<T: Debug> Debug for ThreeMomentum<T>
impl<T: Debug> Debug for ThreeMomentum<T>
Source§impl<T, __Context> Decode<__Context> for ThreeMomentum<T>where
T: Decode<__Context>,
impl<T, __Context> Decode<__Context> for ThreeMomentum<T>where
T: Decode<__Context>,
Source§impl<T: Default> Default for ThreeMomentum<T>
impl<T: Default> Default for ThreeMomentum<T>
Source§impl<'de, T> Deserialize<'de> for ThreeMomentum<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ThreeMomentum<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Display> Display for ThreeMomentum<T>
impl<T: Display> Display for ThreeMomentum<T>
Source§impl<T> Encode for ThreeMomentum<T>where
T: Encode,
impl<T> Encode for ThreeMomentum<T>where
T: Encode,
impl<T: Eq> Eq for ThreeMomentum<T>
Source§impl<T> From<(T, T, T)> for ThreeMomentum<T>
impl<T> From<(T, T, T)> for ThreeMomentum<T>
Source§impl<T: FloatLike> From<ThreeMomentum<T>> for ThreeMomentum<F<T>>
impl<T: FloatLike> From<ThreeMomentum<T>> for ThreeMomentum<F<T>>
Source§fn from(value: ThreeMomentum<T>) -> Self
fn from(value: ThreeMomentum<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ThreeMomentum<T>> for [T; 3]
impl<T> From<ThreeMomentum<T>> for [T; 3]
Source§fn from(data: ThreeMomentum<T>) -> Self
fn from(data: ThreeMomentum<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ThreeMomentum<T>> for (T, T, T)
impl<T> From<ThreeMomentum<T>> for (T, T, T)
Source§fn from(data: ThreeMomentum<T>) -> Self
fn from(data: ThreeMomentum<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<[T; 3]> for ThreeMomentum<T>
impl<T> From<[T; 3]> for ThreeMomentum<T>
Source§impl<T> FromIterator<ThreeMomentum<T>> for LoopMomenta<T>
impl<T> FromIterator<ThreeMomentum<T>> for LoopMomenta<T>
Source§fn from_iter<I: IntoIterator<Item = ThreeMomentum<T>>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = ThreeMomentum<T>>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl<T> IntoIterator for ThreeMomentum<T>
impl<T> IntoIterator for ThreeMomentum<T>
Source§impl<'a, T> IntoIterator for &'a ThreeMomentum<T>
impl<'a, T> IntoIterator for &'a ThreeMomentum<T>
Source§impl<T: LowerExp> LowerExp for ThreeMomentum<T>
impl<T: LowerExp> LowerExp for ThreeMomentum<T>
Source§impl<T> Mul for ThreeMomentum<T>
impl<T> Mul for ThreeMomentum<T>
Source§impl<T> Mul<&T> for ThreeMomentum<T>
impl<T> Mul<&T> for ThreeMomentum<T>
Source§impl<T> Mul<&T> for &ThreeMomentum<T>
impl<T> Mul<&T> for &ThreeMomentum<T>
Source§impl<T> Mul<&ThreeMomentum<T>> for ThreeMomentum<T>
impl<T> Mul<&ThreeMomentum<T>> for ThreeMomentum<T>
Source§impl<T> Mul<T> for ThreeMomentum<T>
impl<T> Mul<T> for ThreeMomentum<T>
Source§impl<T> Mul<T> for &ThreeMomentum<T>
impl<T> Mul<T> for &ThreeMomentum<T>
Source§impl<T> Mul<ThreeMomentum<T>> for &ThreeMomentum<T>
impl<T> Mul<ThreeMomentum<T>> for &ThreeMomentum<T>
Source§impl<T> Neg for ThreeMomentum<T>where
T: Neg<Output = T>,
impl<T> Neg for ThreeMomentum<T>where
T: Neg<Output = T>,
Source§impl<T> Neg for &ThreeMomentum<T>
impl<T> Neg for &ThreeMomentum<T>
Source§impl<T: PartialEq> PartialEq for ThreeMomentum<T>
impl<T: PartialEq> PartialEq for ThreeMomentum<T>
Source§fn eq(&self, other: &ThreeMomentum<T>) -> bool
fn eq(&self, other: &ThreeMomentum<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T: Real> RefDefault for ThreeMomentum<T>
impl<T: Real> RefDefault for ThreeMomentum<T>
Source§impl<T> Serialize for ThreeMomentum<T>where
T: Serialize,
impl<T> Serialize for ThreeMomentum<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for ThreeMomentum<T>
Source§impl<T> Sub for ThreeMomentum<T>where
T: Sub<T, Output = T>,
impl<T> Sub for ThreeMomentum<T>where
T: Sub<T, Output = T>,
Source§type Output = ThreeMomentum<T>
type Output = ThreeMomentum<T>
The resulting type after applying the
- operator.Source§impl<T> Sub<&ThreeMomentum<T>> for &ThreeMomentum<T>
impl<T> Sub<&ThreeMomentum<T>> for &ThreeMomentum<T>
Source§type Output = ThreeMomentum<T>
type Output = ThreeMomentum<T>
The resulting type after applying the
- operator.Source§impl<T> SubAssign for ThreeMomentum<T>where
T: SubAssign<T>,
impl<T> SubAssign for ThreeMomentum<T>where
T: SubAssign<T>,
Source§fn sub_assign(&mut self, rhs: ThreeMomentum<T>)
fn sub_assign(&mut self, rhs: ThreeMomentum<T>)
Performs the
-= operation. Read moreSource§impl<'a, T> SubAssign<&'a ThreeMomentum<T>> for ThreeMomentum<T>
impl<'a, T> SubAssign<&'a ThreeMomentum<T>> for ThreeMomentum<T>
Source§fn sub_assign(&mut self, rhs: &'a ThreeMomentum<T>)
fn sub_assign(&mut self, rhs: &'a ThreeMomentum<T>)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl<T> Freeze for ThreeMomentum<T>where
T: Freeze,
impl<T> RefUnwindSafe for ThreeMomentum<T>where
T: RefUnwindSafe,
impl<T> Send for ThreeMomentum<T>where
T: Send,
impl<T> Sync for ThreeMomentum<T>where
T: Sync,
impl<T> Unpin for ThreeMomentum<T>where
T: Unpin,
impl<T> UnsafeUnpin for ThreeMomentum<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ThreeMomentum<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> AtomComponentOptimizable<()> for T
impl<T> AtomComponentOptimizable<()> for T
fn optimize_atom_components(self) -> T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, Right> ClosedAdd<Right> for T
impl<T, Right> ClosedAdd<Right> for T
impl<T, Right> ClosedAddAssign<Right> for Twhere
T: ClosedAdd<Right> + AddAssign<Right>,
impl<T> ClosedNeg for Twhere
T: Neg<Output = T>,
impl<T> ClosedNeg for Twhere
T: Neg<Output = T>,
impl<T, Right> ClosedSub<Right> for T
impl<T, Right> ClosedSub<Right> for T
impl<T, Right> ClosedSubAssign<Right> for Twhere
T: ClosedSub<Right> + SubAssign<Right>,
§impl<I, C> CompactStringExt for C
impl<I, C> CompactStringExt for C
§fn concat_compact(self) -> CompactString
fn concat_compact(self) -> CompactString
Concatenates all the items of a collection into a [
CompactString] Read more§fn join_compact<S>(self, separator: S) -> CompactString
fn join_compact<S>(self, separator: S) -> CompactString
Joins all the items of a collection, placing a separator between them, forming a
[
CompactString] Read more§impl<T> Conv for T
impl<T> Conv for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRecords for T
impl<T> IntoRecords for T
§type Cell = <<T as IntoIterator>::Item as IntoIterator>::Item
type Cell = <<T as IntoIterator>::Item as IntoIterator>::Item
A string representation of a grid cell.
§type IterColumns = <T as IntoIterator>::Item
type IterColumns = <T as IntoIterator>::Item
Cell iterator inside a row.
§type IterRows = <T as IntoIterator>::IntoIter
type IterRows = <T as IntoIterator>::IntoIter
Rows iterator.
§impl<T> Joinable for Twhere
&'a T: for<'a> IntoIterator,
impl<T> Joinable for Twhere
&'a T: for<'a> IntoIterator,
type Collection = T
§fn join_with<S>(self, sep: S) -> Join<T, S>
fn join_with<S>(self, sep: S) -> Join<T, S>
Combine this object with a separator to create a new [
Join] instance.
Note that the separator does not have to share the same type as the
iterator’s values. Read more§fn join_concat(self) -> Join<Self::Collection, NoSeparator>
fn join_concat(self) -> Join<Self::Collection, NoSeparator>
Join this object with an empty separator. When rendered
with
Display, the underlying elements will be directly concatenated.
Note that the separator, while empty, is still present, and will show
up if you iterate this instance. Read moreSource§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Set the foreground color generically Read more
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to magenta
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Change the foreground color to the terminal default
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Change the background color to the terminal default
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Change the foreground color to bright black
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Change the background color to bright black
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Change the foreground color to bright red
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Change the background color to bright red
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Change the foreground color to bright green
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Change the background color to bright green
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Change the foreground color to bright yellow
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Change the background color to bright yellow
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Change the foreground color to bright blue
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Change the background color to bright blue
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright magenta
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright magenta
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright purple
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright purple
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Change the foreground color to bright cyan
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Change the background color to bright cyan
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Change the foreground color to bright white
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Change the background color to bright white
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Make the text blink (but fast!)
Hide the text
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Cross out the text
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
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§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
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§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
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.
§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
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.
§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, Rhs, O> RefAdd<Rhs> for T
impl<T, Rhs, O> RefAdd<Rhs> for T
§impl<T, Rhs, O> RefMul<Rhs> for T
impl<T, Rhs, O> RefMul<Rhs> for T
§impl<T, O> RefNeg for T
impl<T, O> RefNeg for T
§impl<T, Rhs, O> RefSub<Rhs> for T
impl<T, Rhs, O> RefSub<Rhs> for T
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
impl<T> Scalar for T
Source§impl<T> SectionExt for T
impl<T> SectionExt for T
Source§impl<T> StatusRenderable for T
impl<T> StatusRenderable for T
Source§fn status_pretty(&self) -> Cow<'_, str>
fn status_pretty(&self) -> Cow<'_, str>
Human-friendly, possibly multi-line (e.g. a table).
Source§fn status_json(&self) -> Value
fn status_json(&self) -> Value
Machine-readable payload (stable shape for analysis).
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more§impl<I> ToLendingIterator for Iwhere
I: IntoIterator,
impl<I> ToLendingIterator for Iwhere
I: IntoIterator,
§fn windows(self, size: usize) -> Windows<Self::IntoIter>where
Self: Sized,
fn windows(self, size: usize) -> Windows<Self::IntoIter>where
Self: Sized,
Turns this iterator into a lending iterator over windows of elements (&[Item]). Read more
§fn windows_mut(self, size: usize) -> WindowsMut<Self::IntoIter>where
Self: Sized,
fn windows_mut(self, size: usize) -> WindowsMut<Self::IntoIter>where
Self: Sized,
Turns this iterator into a lending iterator over mutable windows of elements (&mut [Item]). Read more
§fn into_lending(self) -> IntoLending<Self::IntoIter>where
Self: Sized,
fn into_lending(self) -> IntoLending<Self::IntoIter>where
Self: Sized,
Turns this iterator into a lending iterator trivially.
§fn lend_refs(self) -> LendRefs<Self::IntoIter>where
Self: Sized,
fn lend_refs(self) -> LendRefs<Self::IntoIter>where
Self: Sized,
Turns this iterator into a lending iterator that lends references
to the iterator’s items.
§fn lend_refs_mut(self) -> LendRefsMut<Self::IntoIter>where
Self: Sized,
fn lend_refs_mut(self) -> LendRefsMut<Self::IntoIter>where
Self: Sized,
Turns this iterator into a lending iterator that lends mutable references
to the iterator’s items.
§impl<T> TryConv for T
impl<T> TryConv for T
§impl<T, U> TryFromUpgrade<T> for Uwhere
T: TrySmallestUpgrade<U, LCM = U>,
U: Clone,
impl<T, U> TryFromUpgrade<T> for Uwhere
T: TrySmallestUpgrade<U, LCM = U>,
U: Clone,
fn try_from_upgrade(value: &T) -> Option<U>
§impl<T, U> TryIntoUpgrade<U> for Twhere
U: TryFromUpgrade<T>,
impl<T, U> TryIntoUpgrade<U> for Twhere
U: TryFromUpgrade<T>,
fn try_into_upgrade(&self) -> Option<U>
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn 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>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.