pub enum LibraryRep {
SelfDual(u16),
InlineMetric(u16),
Dualizable(i16),
Dummy,
}Variants§
Implementations§
Source§impl LibraryRep
impl LibraryRep
pub fn new_dual(name: &str) -> Result<Self, RepLibraryError>
pub fn symbol(&self) -> Symbol
pub fn name(&self) -> String
pub fn new_self_dual(name: &str) -> Result<Self, RepLibraryError>
pub fn all_self_duals() -> impl Iterator<Item = &'static LibraryRep>
pub fn all_dualizables() -> impl Iterator<Item = &'static LibraryRep>
pub fn all_inline_metrics() -> impl Iterator<Item = &'static LibraryRep>
pub fn all_representations() -> impl Iterator<Item = &'static LibraryRep>
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for LibraryRep
impl<'__de, __Context> BorrowDecode<'__de, __Context> for LibraryRep
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for LibraryRep
impl Clone for LibraryRep
Source§fn clone(&self) -> LibraryRep
fn clone(&self) -> LibraryRep
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 Debug for LibraryRep
impl Debug for LibraryRep
Source§impl<__Context> Decode<__Context> for LibraryRep
impl<__Context> Decode<__Context> for LibraryRep
Source§impl<'de> Deserialize<'de> for LibraryRep
impl<'de> Deserialize<'de> for LibraryRep
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 Display for LibraryRep
impl Display for LibraryRep
Source§impl Encode for LibraryRep
impl Encode for LibraryRep
Source§impl From<DualLorentz> for LibraryRepwhere
DualLorentz: Copy,
impl From<DualLorentz> for LibraryRepwhere
DualLorentz: Copy,
Source§fn from(_value: DualLorentz) -> Self
fn from(_value: DualLorentz) -> Self
Converts to this type from the input type.
Source§impl From<Dummy> for LibraryRep
impl From<Dummy> for LibraryRep
Source§impl From<Euclidean> for LibraryRep
impl From<Euclidean> for LibraryRep
Source§impl From<Lorentz> for LibraryRep
impl From<Lorentz> for LibraryRep
Source§impl From<Minkowski> for LibraryRep
impl From<Minkowski> for LibraryRep
Source§impl Hash for LibraryRep
impl Hash for LibraryRep
Source§impl Index<LibraryRep> for ExtendibleReps
impl Index<LibraryRep> for ExtendibleReps
Source§impl Ord for LibraryRep
impl Ord for LibraryRep
Source§impl PartialEq for LibraryRep
impl PartialEq for LibraryRep
Source§impl PartialOrd for LibraryRep
impl PartialOrd for LibraryRep
Source§impl RepName for LibraryRep
impl RepName for LibraryRep
Source§fn to_symbolic<'a, It: Into<AtomOrView<'a>>>(
&self,
args: impl IntoIterator<Item = It>,
) -> Atom
fn to_symbolic<'a, It: Into<AtomOrView<'a>>>( &self, args: impl IntoIterator<Item = It>, ) -> Atom
yields a function builder for the representation, adding a first variable: the dimension.
type Dual = LibraryRep
type Base = LibraryRep
fn from_library_rep(rep: LibraryRep) -> Result<Self, RepresentationError>
fn orientation(self) -> Orientation
fn dual(self) -> Self::Dual
fn is_base(&self) -> bool
fn is_dual(self) -> bool
fn is_self_dual(&self) -> bool
fn base(&self) -> Self::Base
fn matches(&self, other: &Self::Dual) -> bool
fn match_cmp(&self, other: &Self::Dual) -> Ordering
fn try_from_symbol( sym: Symbol, aind: Symbol, ) -> Result<Self, RepresentationError>
fn try_from_symbol_coerced(sym: Symbol) -> Result<Self, RepresentationError>
Source§fn is_neg(self, i: usize) -> bool
fn is_neg(self, i: usize) -> bool
for the given concrete index, says whether it should have a minus sign during contraction Read more
fn is_dummy(self) -> bool
Source§fn id_atom<'a, It: Into<AtomOrView<'a>>>(
&self,
a: impl IntoIterator<Item = It>,
b: impl IntoIterator<Item = It>,
) -> Atom
fn id_atom<'a, It: Into<AtomOrView<'a>>>( &self, a: impl IntoIterator<Item = It>, b: impl IntoIterator<Item = It>, ) -> Atom
An atom representing the identity function for that representation.
a is dualized
b is not
Source§fn metric_atom<'a, It: Into<AtomOrView<'a>>>(
&self,
a: impl IntoIterator<Item = It>,
b: impl IntoIterator<Item = It>,
) -> Atom
fn metric_atom<'a, It: Into<AtomOrView<'a>>>( &self, a: impl IntoIterator<Item = It>, b: impl IntoIterator<Item = It>, ) -> Atom
yields a function builder for the representation, adding a first variable: the dimension.
fn new_slot<Aind, D: Into<Dimension>, A: Into<Aind>>(
self,
dim: D,
aind: A,
) -> Slot<Self, Aind>where
Self: Sized,
fn new_rep<D: Into<Dimension>>(&self, dim: D) -> Representation<Self>where
Self: Sized,
Source§impl Serialize for LibraryRep
impl Serialize for LibraryRep
Source§impl TryFrom<LibraryRep> for DualLorentzwhere
DualLorentz: Default,
impl TryFrom<LibraryRep> for DualLorentzwhere
DualLorentz: Default,
Source§type Error = RepresentationError
type Error = RepresentationError
The type returned in the event of a conversion error.
Source§impl TryFrom<LibraryRep> for Dummy
impl TryFrom<LibraryRep> for Dummy
Source§type Error = RepresentationError
type Error = RepresentationError
The type returned in the event of a conversion error.
Source§impl TryFrom<LibraryRep> for Euclidean
impl TryFrom<LibraryRep> for Euclidean
Source§type Error = RepresentationError
type Error = RepresentationError
The type returned in the event of a conversion error.
Source§impl TryFrom<LibraryRep> for Lorentz
impl TryFrom<LibraryRep> for Lorentz
Source§type Error = RepresentationError
type Error = RepresentationError
The type returned in the event of a conversion error.
Source§impl TryFrom<LibraryRep> for Minkowski
impl TryFrom<LibraryRep> for Minkowski
Source§type Error = RepresentationError
type Error = RepresentationError
The type returned in the event of a conversion error.
impl Copy for LibraryRep
impl Eq for LibraryRep
impl StructuralPartialEq for LibraryRep
Auto Trait Implementations§
impl Freeze for LibraryRep
impl RefUnwindSafe for LibraryRep
impl Send for LibraryRep
impl Sync for LibraryRep
impl Unpin for LibraryRep
impl UnwindSafe for LibraryRep
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<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.