pub struct NamedStructure<Name = String, Args = usize, R: RepName = LibraryRep, Aind = AbstractIndex> {
pub structure: OrderedStructure<R, Aind>,
pub global_name: Option<Name>,
pub additional_args: Option<Args>,
}Expand description
A named structure is a structure with a global name, and a list of slots
It is useful when you want to shadow tensors, to nest tensor network contraction operations.
Fields§
§structure: OrderedStructure<R, Aind>§global_name: Option<Name>§additional_args: Option<Args>Implementations§
Source§impl<Name, Args, R: RepName, Aind: AbsInd> NamedStructure<Name, Args, R, Aind>
impl<Name, Args, R: RepName, Aind: AbsInd> NamedStructure<Name, Args, R, Aind>
pub fn from_iter<I, T>( iter: T, name: Name, args: Option<Args>, ) -> PermutedStructure<Self>
Trait Implementations§
Source§impl<Name: Clone, Args: Clone, R: Clone + RepName, Aind: Clone> Clone for NamedStructure<Name, Args, R, Aind>
impl<Name: Clone, Args: Clone, R: Clone + RepName, Aind: Clone> Clone for NamedStructure<Name, Args, R, Aind>
Source§fn clone(&self) -> NamedStructure<Name, Args, R, Aind>
fn clone(&self) -> NamedStructure<Name, Args, R, Aind>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<N: Debug, A: ArgDisplay, R: RepName, Aind: AbsInd> Debug for NamedStructure<N, A, R, Aind>
impl<N: Debug, A: ArgDisplay, R: RepName, Aind: AbsInd> Debug for NamedStructure<N, A, R, Aind>
Source§impl<Name, Args, R, Aind, __Context> Decode<__Context> for NamedStructure<Name, Args, R, Aind>
impl<Name, Args, R, Aind, __Context> Decode<__Context> for NamedStructure<Name, Args, R, Aind>
Source§impl<Name: Default, Args: Default, R: Default + RepName, Aind: Default> Default for NamedStructure<Name, Args, R, Aind>
impl<Name: Default, Args: Default, R: Default + RepName, Aind: Default> Default for NamedStructure<Name, Args, R, Aind>
Source§fn default() -> NamedStructure<Name, Args, R, Aind>
fn default() -> NamedStructure<Name, Args, R, Aind>
Returns the “default value” for a type. Read more
Source§impl<N: Display, A: ArgDisplay, R: RepName, Aind: AbsInd> Display for NamedStructure<N, A, R, Aind>
impl<N: Display, A: ArgDisplay, R: RepName, Aind: AbsInd> Display for NamedStructure<N, A, R, Aind>
Source§impl<Name, Args, R, Aind> Encode for NamedStructure<Name, Args, R, Aind>
impl<Name, Args, R, Aind> Encode for NamedStructure<Name, Args, R, Aind>
Source§impl<N, A, R: RepName<Dual = R>> From<NamedStructure<N, A, R>> for SmartShadowStructure<N, A, R>
impl<N, A, R: RepName<Dual = R>> From<NamedStructure<N, A, R>> for SmartShadowStructure<N, A, R>
Source§fn from(value: NamedStructure<N, A, R>) -> Self
fn from(value: NamedStructure<N, A, R>) -> Self
Converts to this type from the input type.
Source§impl<N, A, R: RepName, Aind> From<NamedStructure<N, A, R, Aind>> for IndexLess<R, Aind>
impl<N, A, R: RepName, Aind> From<NamedStructure<N, A, R, Aind>> for IndexLess<R, Aind>
Source§fn from(structure: NamedStructure<N, A, R, Aind>) -> Self
fn from(structure: NamedStructure<N, A, R, Aind>) -> Self
Converts to this type from the input type.
Source§impl<N, A, R: RepName, Aind> From<NamedStructure<N, A, R, Aind>> for IndexlessNamedStructure<N, A, R, Aind>
impl<N, A, R: RepName, Aind> From<NamedStructure<N, A, R, Aind>> for IndexlessNamedStructure<N, A, R, Aind>
Source§fn from(value: NamedStructure<N, A, R, Aind>) -> Self
fn from(value: NamedStructure<N, A, R, Aind>) -> Self
Converts to this type from the input type.
Source§impl<N, A, R: RepName, Aind> From<NamedStructure<N, A, R, Aind>> for OrderedStructure<R, Aind>
impl<N, A, R: RepName, Aind> From<NamedStructure<N, A, R, Aind>> for OrderedStructure<R, Aind>
Source§fn from(structure: NamedStructure<N, A, R, Aind>) -> Self
fn from(structure: NamedStructure<N, A, R, Aind>) -> Self
Converts to this type from the input type.
Source§impl<N, A, R: RepName, Aind: AbsInd> From<OrderedStructure<R, Aind>> for NamedStructure<N, A, R, Aind>
impl<N, A, R: RepName, Aind: AbsInd> From<OrderedStructure<R, Aind>> for NamedStructure<N, A, R, Aind>
Source§fn from(value: OrderedStructure<R, Aind>) -> Self
fn from(value: OrderedStructure<R, Aind>) -> Self
Converts to this type from the input type.
Source§impl<N, A, R: RepName, Aind: AbsInd> HasName for NamedStructure<N, A, R, Aind>
A trait for a structure that has a name
impl<N, A, R: RepName, Aind: AbsInd> HasName for NamedStructure<N, A, R, Aind>
A trait for a structure that has a name
type Name = N
type Args = A
fn name(&self) -> Option<Self::Name>
fn set_name(&mut self, name: Self::Name)
fn args(&self) -> Option<Self::Args>
fn expanded_coef(&self, id: FlatIndex) -> ExpandedCoefficent<Self::Args>
fn expanded_coef_perm( &self, id: FlatIndex, permutation: &Permutation, ) -> ExpandedCoefficent<Self::Args>
fn flat_coef(&self, id: FlatIndex) -> FlatCoefficent<Self::Args>
Source§impl<Name: Hash, Args: Hash, R: Hash + RepName, Aind: Hash> Hash for NamedStructure<Name, Args, R, Aind>
impl<Name: Hash, Args: Hash, R: Hash + RepName, Aind: Hash> Hash for NamedStructure<Name, Args, R, Aind>
Source§impl<Name: PartialEq, Args: PartialEq, R: PartialEq + RepName, Aind: PartialEq> PartialEq for NamedStructure<Name, Args, R, Aind>
impl<Name: PartialEq, Args: PartialEq, R: PartialEq + RepName, Aind: PartialEq> PartialEq for NamedStructure<Name, Args, R, Aind>
Source§fn eq(&self, other: &NamedStructure<Name, Args, R, Aind>) -> bool
fn eq(&self, other: &NamedStructure<Name, Args, R, Aind>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<N: IdentityName, A, R: RepName<Dual = R>, Aind: AbsInd + DummyAind> PermuteTensor for NamedStructure<N, A, R, Aind>
impl<N: IdentityName, A, R: RepName<Dual = R>, Aind: AbsInd + DummyAind> PermuteTensor for NamedStructure<N, A, R, Aind>
type Id = NamedStructure<N, A, R, Aind>
type IdSlot = Slot<R, Aind>
type Permuted = (NamedStructure<N, A, LibraryRep, Aind>, Vec<NamedStructure<N, A, LibraryRep, Aind>>)
fn id(i: Self::IdSlot, j: Self::IdSlot) -> Self::Id
fn permute_inds(self, permutation: &Permutation) -> Self::Permuted
fn permute_reps(self, rep_perm: &Permutation) -> Self::Permuted
Source§impl<N, A, R: RepName, Aind: AbsInd> ScalarStructure for NamedStructure<N, A, R, Aind>
impl<N, A, R: RepName, Aind: AbsInd> ScalarStructure for NamedStructure<N, A, R, Aind>
fn scalar_structure() -> Self
Source§impl<N, A, R: RepName<Dual = R>, Aind: AbsInd> StructureContract for NamedStructure<N, A, R, Aind>
impl<N, A, R: RepName<Dual = R>, Aind: AbsInd> StructureContract for NamedStructure<N, A, R, Aind>
Source§impl<N, A, R: RepName<Dual = R>, Aind: AbsInd> TensorStructure for NamedStructure<N, A, R, Aind>
impl<N, A, R: RepName<Dual = R>, Aind: AbsInd> TensorStructure for NamedStructure<N, A, R, Aind>
type Slot = Slot<R, Aind>
type Indexed = NamedStructure<N, A, R, Aind>
fn is_fully_self_dual(&self) -> bool
fn reindex( self, indices: &[Aind], ) -> Result<PermutedStructure<Self::Indexed>, StructureError>
fn dual(self) -> Self
fn external_reps_iter( &self, ) -> impl Iterator<Item = Representation<<Self::Slot as IsAbstractSlot>::R>>
fn external_indices_iter(&self) -> impl Iterator<Item = Aind>
fn external_dims_iter(&self) -> impl Iterator<Item = Dimension>
fn external_structure_iter(&self) -> impl Iterator<Item = Self::Slot>
fn order(&self) -> usize
fn get_slot(&self, i: usize) -> Option<Self::Slot>
fn get_rep( &self, i: usize, ) -> Option<Representation<<Self::Slot as IsAbstractSlot>::R>>
fn get_aind(&self, i: usize) -> Option<Aind>
fn get_dim(&self, i: usize) -> Option<Dimension>
fn string_rep(&self) -> String
Source§fn external_structure(&self) -> Vec<Self::Slot>
fn external_structure(&self) -> Vec<Self::Slot>
returns the list of slots that are the external indices of the tensor
fn to_shell(self) -> TensorShell<Self>where
Self: Sized,
fn contains_matching(&self, slot: &Self::Slot) -> bool
fn external_reps( &self, ) -> Vec<Representation<<Self::Slot as IsAbstractSlot>::R>>
fn external_indices(&self) -> Vec<<Self::Slot as IsAbstractSlot>::Aind>
Source§fn same_content(&self, other: &Self) -> bool
fn same_content(&self, other: &Self) -> bool
checks if the tensor has the same exact structure as another tensor
Source§fn match_index(&self, other: &Self) -> Option<(bool, usize, usize)>
fn match_index(&self, other: &Self) -> Option<(bool, usize, usize)>
Given two
TensorStructures, returns the index of the first matching slot in each external index list, along with a boolean indicating if there is a single matchSource§fn match_indices(
&self,
other: &Self,
) -> Option<(Permutation, Vec<bool>, Vec<bool>)>
fn match_indices( &self, other: &Self, ) -> Option<(Permutation, Vec<bool>, Vec<bool>)>
Given two
TensorStructures, returns the index of the first matching slot in each external index listSource§fn shape(&self) -> Vec<Dimension>
fn shape(&self) -> Vec<Dimension>
yields the (outwards facing) shape of the tensor as a list of dimensions
fn reps(&self) -> Vec<Representation<<Self::Slot as IsAbstractSlot>::R>>
Source§fn same_external(&self, other: &Self) -> bool
fn same_external(&self, other: &Self) -> bool
checks if externally, the two tensors are the same
Source§fn find_permutation(&self, other: &Self) -> Result<Permutation>
fn find_permutation(&self, other: &Self) -> Result<Permutation>
find the permutation of the external indices that would make the two tensors the same. Applying the permutation to other should make it the same as self
Source§fn strides_column_major(&self) -> Result<Vec<usize>>
fn strides_column_major(&self) -> Result<Vec<usize>>
yields the strides of the tensor in column major order
Source§fn strides_row_major(&self) -> Result<Vec<usize>>
fn strides_row_major(&self) -> Result<Vec<usize>>
yields the strides of the tensor in row major order
Source§fn verify_indices<C: AsRef<[ConcreteIndex]>>(&self, indices: C) -> Result<()>
fn verify_indices<C: AsRef<[ConcreteIndex]>>(&self, indices: C) -> Result<()>
Verifies that the list of indices provided are valid for the tensor Read more
Source§fn flat_index<C: AsRef<[ConcreteIndex]>>(&self, indices: C) -> Result<FlatIndex>
fn flat_index<C: AsRef<[ConcreteIndex]>>(&self, indices: C) -> Result<FlatIndex>
yields the flat index of the tensor given a list of indices Read more
Source§fn expanded_index(&self, flat_index: FlatIndex) -> Result<ExpandedIndex>
fn expanded_index(&self, flat_index: FlatIndex) -> Result<ExpandedIndex>
yields the expanded index of the tensor given a flat index Read more
fn co_expanded_index( &self, flat_index: FlatIndex, ) -> Result<DualConciousExpandedIndex>
Source§fn index_iter(&self) -> TensorStructureIndexIterator<'_, Self> ⓘwhere
Self: Sized,
fn index_iter(&self) -> TensorStructureIndexIterator<'_, Self> ⓘwhere
Self: Sized,
yields an iterator over the indices of the tensor
impl<Name: Eq, Args: Eq, R: Eq + RepName, Aind: Eq> Eq for NamedStructure<Name, Args, R, Aind>
impl<Name, Args, R: RepName, Aind> StructuralPartialEq for NamedStructure<Name, Args, R, Aind>
Auto Trait Implementations§
impl<Name, Args, R, Aind> Freeze for NamedStructure<Name, Args, R, Aind>
impl<Name, Args, R, Aind> RefUnwindSafe for NamedStructure<Name, Args, R, Aind>
impl<Name, Args, R, Aind> Send for NamedStructure<Name, Args, R, Aind>
impl<Name, Args, R, Aind> Sync for NamedStructure<Name, Args, R, Aind>
impl<Name, Args, R, Aind> Unpin for NamedStructure<Name, Args, R, Aind>
impl<Name, Args, R, Aind> UnwindSafe for NamedStructure<Name, Args, R, Aind>
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> 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> 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> 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.