pub struct Complex<T> {
pub re: T,
pub im: T,
}Fields§
§re: T§im: TImplementations§
Source§impl<T> Complex<T>
impl<T> Complex<T>
pub fn map_ref<U>(&self, f: impl Fn(&T) -> U) -> Complex<U>
pub fn map<U>(self, f: impl Fn(T) -> U) -> Complex<U>
pub fn map_mut(&mut self, f: impl FnMut(&mut T))
pub fn map_ref_mut<U>(&mut self, f: impl FnMut(&mut T) -> U) -> Complex<U>
pub fn new(re: T, im: T) -> Complex<T>
pub fn new_re(re: T) -> Complex<T>where
T: RefZero,
pub fn new_im(im: T) -> Complex<T>where
T: RefZero,
pub fn new_zero() -> Selfwhere
T: Constructible,
pub fn new_i() -> Selfwhere
T: Constructible,
pub fn ref_i(&self) -> Complex<T>
pub fn pow<'a>(&'a self, e: u64) -> Self
pub fn conj(&self) -> Complex<T>
pub fn i() -> Complex<T>
pub fn norm_squared(&self) -> T
pub fn inv(&self) -> Self
Trait Implementations§
Source§impl<T> AddAssign<&Complex<T>> for Complex<T>
impl<T> AddAssign<&Complex<T>> for Complex<T>
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the
+= operation. Read moreSource§impl<T> AddAssign<&T> for Complex<T>
impl<T> AddAssign<&T> for Complex<T>
Source§fn add_assign(&mut self, rhs: &T)
fn add_assign(&mut self, rhs: &T)
Performs the
+= operation. Read moreSource§impl<T, U> AddAssign<RealOrComplexRef<'_, T>> for Complex<U>
impl<T, U> AddAssign<RealOrComplexRef<'_, T>> for Complex<U>
Source§fn add_assign(&mut self, rhs: RealOrComplexRef<'_, T>)
fn add_assign(&mut self, rhs: RealOrComplexRef<'_, T>)
Performs the
+= operation. Read moreSource§impl<T> AddAssign<T> for Complex<T>where
T: AddAssign<T>,
impl<T> AddAssign<T> for Complex<T>where
T: AddAssign<T>,
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+= operation. Read moreSource§impl<T> AddAssign for Complex<T>
impl<T> AddAssign for Complex<T>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl CompiledNumber for Complex<f64>
impl CompiledNumber for Complex<f64>
Source§const SUFFIX: &'static str = "complexf64"
const SUFFIX: &'static str = "complexf64"
A unique suffix for the evaluation function for this particular number type.
type Evaluator = CompiledComplexEvaluatorSpenso
type Settings = ()
Source§fn get_default_compile_options() -> CompileOptions
fn get_default_compile_options() -> CompileOptions
Get the default compilation options for C++ code generated
for this number type.
Source§fn export_cpp<N: ExportNumber + SingleFloat>(
eval: &ExpressionEvaluator<N>,
function_name: &str,
settings: ExportSettings,
) -> Result<String, String>
fn export_cpp<N: ExportNumber + SingleFloat>( eval: &ExpressionEvaluator<N>, function_name: &str, settings: ExportSettings, ) -> Result<String, String>
Export an evaluator to C++ code for this number type.
fn construct_function_name(function_name: &str) -> String
Source§impl<'de, T> Deserialize<'de> for Complex<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Complex<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, U, Out> Div<&RealOrComplex<T>> for Complex<U>
impl<T, U, Out> Div<&RealOrComplex<T>> for Complex<U>
Source§impl<T, U, Out> Div<RealOrComplexRef<'_, T>> for Complex<U>
impl<T, U, Out> Div<RealOrComplexRef<'_, T>> for Complex<U>
Source§impl<T> DivAssign<&Complex<T>> for Complex<T>
impl<T> DivAssign<&Complex<T>> for Complex<T>
Source§fn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
Performs the
/= operation. Read moreSource§impl<T> DivAssign<&T> for Complex<T>
impl<T> DivAssign<&T> for Complex<T>
Source§fn div_assign(&mut self, rhs: &T)
fn div_assign(&mut self, rhs: &T)
Performs the
/= operation. Read moreSource§impl<T> DivAssign<T> for Complex<T>
impl<T> DivAssign<T> for Complex<T>
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/= operation. Read moreSource§impl<T> DivAssign for Complex<T>
impl<T> DivAssign for Complex<T>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moreSource§impl<S: TensorStructure, K: Clone, FK: Clone, Aind: AbsInd> Evaluate<NetworkStore<EvalTensor<CompiledComplexEvaluatorSpenso, S>, CompiledComplexEvaluatorSpenso>, K, FK, S, Complex<f64>, Aind> for Network<NetworkStore<CompiledEvalTensor<S>, CompiledComplexEvaluatorSpenso>, K, FK, Aind>
impl<S: TensorStructure, K: Clone, FK: Clone, Aind: AbsInd> Evaluate<NetworkStore<EvalTensor<CompiledComplexEvaluatorSpenso, S>, CompiledComplexEvaluatorSpenso>, K, FK, S, Complex<f64>, Aind> for Network<NetworkStore<CompiledEvalTensor<S>, CompiledComplexEvaluatorSpenso>, K, FK, Aind>
fn evaluate(
&mut self,
params: &[Complex<f64>],
) -> Network<NetworkStore<DataTensor<Complex<f64>, S>, Complex<f64>>, K, FK, Aind>where
S: TensorStructure + Clone,
Source§impl<T: ExportNumber + SingleFloat> ExportNumber for Complex<T>
impl<T: ExportNumber + SingleFloat> ExportNumber for Complex<T>
Source§fn export_wrapped(&self) -> String
fn export_wrapped(&self) -> String
Export the number wrapped in a C++ type
T.Source§fn export_wrapped_with(&self, wrapper: &str) -> String
fn export_wrapped_with(&self, wrapper: &str) -> String
Export the number wrapped in a C++ type
wrapper.Source§impl<T: Float + for<'a> RefMul<&'a T, Output = T> + Add<T, Output = T>> FloatDerived<T> for Complex<T>
impl<T: Float + for<'a> RefMul<&'a T, Output = T> + Add<T, Output = T>> FloatDerived<T> for Complex<T>
Source§impl<T> FloatLike for Complex<T>
impl<T> FloatLike for Complex<T>
Source§fn is_fully_zero(&self) -> bool
fn is_fully_zero(&self) -> bool
Return true if the number is exactly equal to zero (in all components).
fn neg(&self) -> Self
fn zero(&self) -> Self
Source§fn new_zero() -> Self
fn new_zero() -> Self
Create a zero that should only be used as a temporary value,
as for some types it may have wrong precision information.
fn one(&self) -> Self
fn pow(&self, e: u64) -> Self
fn inv(&self) -> Self
fn from_usize(&self, a: usize) -> Self
fn from_i64(&self, a: i64) -> Self
Source§fn get_precision(&self) -> u32
fn get_precision(&self) -> u32
Get the number of precise binary digits.
fn get_epsilon(&self) -> f64
Source§fn fixed_precision(&self) -> bool
fn fixed_precision(&self) -> bool
Return true iff the precision is fixed, or false
if the precision is changed dynamically.
Source§impl<T: Real> From<Complex<T>> for Complex<T>
Available on crate feature shadowing only.
impl<T: Real> From<Complex<T>> for Complex<T>
Available on crate feature
shadowing only.Source§fn from(complex: SymComplex<T>) -> Self
fn from(complex: SymComplex<T>) -> Self
Converts to this type from the input type.
Source§impl<T: RefZero> From<RealOrComplex<T>> for Complex<T>
impl<T: RefZero> From<RealOrComplex<T>> for Complex<T>
Source§fn from(value: RealOrComplex<T>) -> Self
fn from(value: RealOrComplex<T>) -> Self
Converts to this type from the input type.
Source§impl<'a> FromPyObject<'_, 'a> for Complex<f64>
Available on crate feature python only.
impl<'a> FromPyObject<'_, 'a> for Complex<f64>
Available on crate feature
python only.Source§impl<T> MulAssign<&Complex<T>> for Complex<T>
impl<T> MulAssign<&Complex<T>> for Complex<T>
Source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
Performs the
*= operation. Read moreSource§impl<T> MulAssign<&T> for Complex<T>
impl<T> MulAssign<&T> for Complex<T>
Source§fn mul_assign(&mut self, rhs: &T)
fn mul_assign(&mut self, rhs: &T)
Performs the
*= operation. Read moreSource§impl<T, U> MulAssign<RealOrComplexRef<'_, T>> for Complex<U>
impl<T, U> MulAssign<RealOrComplexRef<'_, T>> for Complex<U>
Source§fn mul_assign(&mut self, rhs: RealOrComplexRef<'_, T>)
fn mul_assign(&mut self, rhs: RealOrComplexRef<'_, T>)
Performs the
*= operation. Read moreSource§impl<T> MulAssign<T> for Complex<T>
impl<T> MulAssign<T> for Complex<T>
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*= operation. Read moreSource§impl<T> MulAssign for Complex<T>
impl<T> MulAssign for Complex<T>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl<T: Zero + One + PartialEq + Sub<Output = T> + Clone> One for Complex<T>
impl<T: Zero + One + PartialEq + Sub<Output = T> + Clone> One for Complex<T>
Source§impl<T: Ord> Ord for Complex<T>
impl<T: Ord> Ord for Complex<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for Complex<T>
impl<T: PartialOrd> PartialOrd for Complex<T>
Source§impl PyStubType for Complex<f64>
Available on crate feature python_stubgen only.
impl PyStubType for Complex<f64>
Available on crate feature
python_stubgen only.Source§fn type_output() -> TypeInfo
fn type_output() -> TypeInfo
The type to be used in the output signature, i.e. return type of the Python function or methods.
Source§fn type_input() -> TypeInfo
fn type_input() -> TypeInfo
The type to be used in the input signature, i.e. the arguments of the Python function or methods. Read more
Source§impl<T> Real for Complex<T>
Available on crate feature shadowing only.
impl<T> Real for Complex<T>
Available on crate feature
shadowing only.fn conj(&self) -> Self
fn norm(&self) -> Self
fn sqrt(&self) -> Self
fn log(&self) -> Self
fn exp(&self) -> Self
fn sin(&self) -> Self
fn cos(&self) -> Self
fn tan(&self) -> Self
fn asin(&self) -> Self
fn acos(&self) -> Self
fn atan2(&self, x: &Self) -> Self
fn sinh(&self) -> Self
fn cosh(&self) -> Self
fn tanh(&self) -> Self
fn asinh(&self) -> Self
fn acosh(&self) -> Self
fn atanh(&self) -> Self
fn powf(&self, e: &Self) -> Self
Source§impl<I, T> ScalarMul<Complex<T>> for MixedTensor<T, I>where
I: TensorStructure + Clone,
T: FallibleMul<Complex<T>, Output = Complex<T>> + Clone,
Atom: FallibleMul<Complex<T>, Output = Atom>,
Complex<T>: FallibleMul<Complex<T>, Output = Complex<T>>,
impl<I, T> ScalarMul<Complex<T>> for MixedTensor<T, I>where
I: TensorStructure + Clone,
T: FallibleMul<Complex<T>, Output = Complex<T>> + Clone,
Atom: FallibleMul<Complex<T>, Output = Atom>,
Complex<T>: FallibleMul<Complex<T>, Output = Complex<T>>,
type Output = ParamOrConcrete<RealOrComplexTensor<T, I>, I>
fn scalar_mul(&self, rhs: &Complex<T>) -> Option<Self::Output>
Source§impl<U, S> ScalarMul<Complex<U>> for RealOrComplexTensor<U, S>where
DataTensor<U, S>: ScalarMul<Complex<U>, Output = DataTensor<Complex<U>, S>>,
DataTensor<Complex<U>, S>: ScalarMul<Complex<U>, Output = DataTensor<Complex<U>, S>>,
S: TensorStructure + Clone,
impl<U, S> ScalarMul<Complex<U>> for RealOrComplexTensor<U, S>where
DataTensor<U, S>: ScalarMul<Complex<U>, Output = DataTensor<Complex<U>, S>>,
DataTensor<Complex<U>, S>: ScalarMul<Complex<U>, Output = DataTensor<Complex<U>, S>>,
S: TensorStructure + Clone,
type Output = RealOrComplexTensor<U, S>
fn scalar_mul(&self, rhs: &Complex<U>) -> Option<Self::Output>
Source§impl<T> SingleFloat for Complex<T>
impl<T> SingleFloat for Complex<T>
Source§impl<T> SubAssign<&Complex<T>> for Complex<T>
impl<T> SubAssign<&Complex<T>> for Complex<T>
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
Performs the
-= operation. Read moreSource§impl<T> SubAssign<&T> for Complex<T>
impl<T> SubAssign<&T> for Complex<T>
Source§fn sub_assign(&mut self, rhs: &T)
fn sub_assign(&mut self, rhs: &T)
Performs the
-= operation. Read moreSource§impl<T> SubAssign<T> for Complex<T>where
T: SubAssign<T>,
impl<T> SubAssign<T> for Complex<T>where
T: SubAssign<T>,
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-= operation. Read moreSource§impl<T> SubAssign for Complex<T>
impl<T> SubAssign for Complex<T>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreSource§impl<T: Real> SymbolicaComplex for Complex<T>
Available on crate feature shadowing only.
impl<T: Real> SymbolicaComplex for Complex<T>
Available on crate feature
shadowing only.Source§impl<T> TrySmallestUpgrade<Atom> for Complex<T>
impl<T> TrySmallestUpgrade<Atom> for Complex<T>
Source§impl TrySmallestUpgrade<Complex<Fraction<IntegerRing>>> for Complex<Rational>
Available on crate feature shadowing only.
impl TrySmallestUpgrade<Complex<Fraction<IntegerRing>>> for Complex<Rational>
Available on crate feature
shadowing only.Source§impl TrySmallestUpgrade<Complex<Fraction<IntegerRing>>> for Rational
impl TrySmallestUpgrade<Complex<Fraction<IntegerRing>>> for Rational
Source§impl TrySmallestUpgrade<Complex<Integer>> for Complex<Integer>
Available on crate feature shadowing only.
impl TrySmallestUpgrade<Complex<Integer>> for Complex<Integer>
Available on crate feature
shadowing only.Source§impl<T> TrySmallestUpgrade<Complex<T>> for Atom
impl<T> TrySmallestUpgrade<Complex<T>> for Atom
Source§impl TrySmallestUpgrade<Complex<f64>> for SerializableAtom
impl TrySmallestUpgrade<Complex<f64>> for SerializableAtom
Source§impl TrySmallestUpgrade<Fraction<IntegerRing>> for Complex<Rational>
impl TrySmallestUpgrade<Fraction<IntegerRing>> for Complex<Rational>
Source§impl TrySmallestUpgrade<SerializableAtom> for Complex<f64>
Available on crate feature shadowing only.
impl TrySmallestUpgrade<SerializableAtom> for Complex<f64>
Available on crate feature
shadowing only.type LCM = SerializableAtom
fn try_upgrade(&self) -> Option<Cow<'_, Self::LCM>>
impl<T: Copy> Copy for Complex<T>
impl<T: Eq> Eq for Complex<T>
impl<T> StructuralPartialEq for Complex<T>
Auto Trait Implementations§
impl<T> Freeze for Complex<T>where
T: Freeze,
impl<T> RefUnwindSafe for Complex<T>where
T: RefUnwindSafe,
impl<T> Send for Complex<T>where
T: Send,
impl<T> Sync for Complex<T>where
T: Sync,
impl<T> Unpin for Complex<T>where
T: Unpin,
impl<T> UnwindSafe for Complex<T>where
T: UnwindSafe,
Blanket Implementations§
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T, U, Out> ContractableWith<T> for Uwhere
U: FallibleMul<T, Output = Out> + TrySmallestUpgrade<T, LCM = Out>,
Out: FallibleAddAssign + FallibleSubAssign<Out> + Clone + RefZero,
impl<T, U, Out> ContractableWith<T> for Uwhere
U: FallibleMul<T, Output = Out> + TrySmallestUpgrade<T, LCM = Out>,
Out: FallibleAddAssign + FallibleSubAssign<Out> + Clone + RefZero,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T, U> FallibleAdd<T> for Uwhere
U: TrySmallestUpgrade<T>,
T: TrySmallestUpgrade<U, LCM = <U as TrySmallestUpgrade<T>>::LCM>,
<U as TrySmallestUpgrade<T>>::LCM: for<'b> RefAdd<&'b <U as TrySmallestUpgrade<T>>::LCM, Output = <U as TrySmallestUpgrade<T>>::LCM>,
impl<T, U> FallibleAdd<T> for Uwhere
U: TrySmallestUpgrade<T>,
T: TrySmallestUpgrade<U, LCM = <U as TrySmallestUpgrade<T>>::LCM>,
<U as TrySmallestUpgrade<T>>::LCM: for<'b> RefAdd<&'b <U as TrySmallestUpgrade<T>>::LCM, Output = <U as TrySmallestUpgrade<T>>::LCM>,
type Output = <U as TrySmallestUpgrade<T>>::LCM
fn add_fallible(&self, rhs: &T) -> Option<<U as FallibleAdd<T>>::Output>
Source§impl<T, U> FallibleAddAssign<T> for Uwhere
T: TrySmallestUpgrade<U, LCM = U>,
<U as TrySmallestUpgrade<T>>::LCM: Clone + for<'b> RefAdd<&'b <U as TrySmallestUpgrade<T>>::LCM, Output = <U as TrySmallestUpgrade<T>>::LCM>,
U: TrySmallestUpgrade<T, LCM = U>,
impl<T, U> FallibleAddAssign<T> for Uwhere
T: TrySmallestUpgrade<U, LCM = U>,
<U as TrySmallestUpgrade<T>>::LCM: Clone + for<'b> RefAdd<&'b <U as TrySmallestUpgrade<T>>::LCM, Output = <U as TrySmallestUpgrade<T>>::LCM>,
U: TrySmallestUpgrade<T, LCM = U>,
fn add_assign_fallible(&mut self, rhs: &T)
Source§impl<T, U> FallibleMul<T> for Uwhere
U: TrySmallestUpgrade<T>,
T: TrySmallestUpgrade<U, LCM = <U as TrySmallestUpgrade<T>>::LCM>,
<U as TrySmallestUpgrade<T>>::LCM: Clone + for<'b> RefMul<&'b <U as TrySmallestUpgrade<T>>::LCM, Output = <U as TrySmallestUpgrade<T>>::LCM>,
impl<T, U> FallibleMul<T> for Uwhere
U: TrySmallestUpgrade<T>,
T: TrySmallestUpgrade<U, LCM = <U as TrySmallestUpgrade<T>>::LCM>,
<U as TrySmallestUpgrade<T>>::LCM: Clone + for<'b> RefMul<&'b <U as TrySmallestUpgrade<T>>::LCM, Output = <U as TrySmallestUpgrade<T>>::LCM>,
type Output = <U as TrySmallestUpgrade<T>>::LCM
fn mul_fallible(&self, rhs: &T) -> Option<<U as FallibleMul<T>>::Output>
Source§impl<T, U> FallibleSub<T> for Uwhere
U: TrySmallestUpgrade<T>,
T: TrySmallestUpgrade<U, LCM = <U as TrySmallestUpgrade<T>>::LCM>,
<U as TrySmallestUpgrade<T>>::LCM: Clone + for<'b> RefSub<&'b <U as TrySmallestUpgrade<T>>::LCM, Output = <U as TrySmallestUpgrade<T>>::LCM>,
impl<T, U> FallibleSub<T> for Uwhere
U: TrySmallestUpgrade<T>,
T: TrySmallestUpgrade<U, LCM = <U as TrySmallestUpgrade<T>>::LCM>,
<U as TrySmallestUpgrade<T>>::LCM: Clone + for<'b> RefSub<&'b <U as TrySmallestUpgrade<T>>::LCM, Output = <U as TrySmallestUpgrade<T>>::LCM>,
type Output = <U as TrySmallestUpgrade<T>>::LCM
fn sub_fallible(&self, rhs: &T) -> Option<<U as FallibleSub<T>>::Output>
Source§impl<T, U> FallibleSubAssign<T> for Uwhere
T: TrySmallestUpgrade<U, LCM = U>,
<U as TrySmallestUpgrade<T>>::LCM: Clone + for<'b> RefSub<&'b <U as TrySmallestUpgrade<T>>::LCM, Output = <U as TrySmallestUpgrade<T>>::LCM>,
U: TrySmallestUpgrade<T, LCM = U>,
impl<T, U> FallibleSubAssign<T> for Uwhere
T: TrySmallestUpgrade<U, LCM = U>,
<U as TrySmallestUpgrade<T>>::LCM: Clone + for<'b> RefSub<&'b <U as TrySmallestUpgrade<T>>::LCM, Output = <U as TrySmallestUpgrade<T>>::LCM>,
U: TrySmallestUpgrade<T, LCM = U>,
fn sub_assign_fallible(&mut self, rhs: &T)
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§impl<T> FunctionArgument for T
impl<T> FunctionArgument for T
fn add_arg_to_function_builder(&self, f: FunctionBuilder) -> FunctionBuilder
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 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.
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§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
Source§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 moreSource§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 moreSource§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
Source§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
Source§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.Source§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.Source§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.Source§impl<T> Pointable for T
impl<T> Pointable 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.
Source§impl<T> Tap for T
impl<T> Tap for T
Source§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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>
Source§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.
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§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.