pub struct AmplitudeID(/* private fields */);Expand description
A tag which refers to a registered Amplitude. This is the base object which can be used to
build Expressions and should be obtained from the Manager::register method.
Implementations§
Source§impl AmplitudeID
impl AmplitudeID
Sourcepub fn real(&self) -> Expression
pub fn real(&self) -> Expression
Takes the real part of the given Amplitude.
Sourcepub fn imag(&self) -> Expression
pub fn imag(&self) -> Expression
Takes the imaginary part of the given Amplitude.
Sourcepub fn norm_sqr(&self) -> Expression
pub fn norm_sqr(&self) -> Expression
Takes the absolute square of the given Amplitude.
Trait Implementations§
Source§impl Add<&AmplitudeID> for &AmplitudeID
impl Add<&AmplitudeID> for &AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &AmplitudeID) -> <&AmplitudeID as Add<&AmplitudeID>>::Output
fn add(self, rhs: &AmplitudeID) -> <&AmplitudeID as Add<&AmplitudeID>>::Output
Performs the
+ operation. Read moreSource§impl Add<&AmplitudeID> for &Expression
impl Add<&AmplitudeID> for &Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &AmplitudeID) -> <&Expression as Add<&AmplitudeID>>::Output
fn add(self, rhs: &AmplitudeID) -> <&Expression as Add<&AmplitudeID>>::Output
Performs the
+ operation. Read moreSource§impl Add<&AmplitudeID> for AmplitudeID
impl Add<&AmplitudeID> for AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &AmplitudeID) -> <AmplitudeID as Add<&AmplitudeID>>::Output
fn add(self, rhs: &AmplitudeID) -> <AmplitudeID as Add<&AmplitudeID>>::Output
Performs the
+ operation. Read moreSource§impl Add<&AmplitudeID> for Expression
impl Add<&AmplitudeID> for Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &AmplitudeID) -> <Expression as Add<&AmplitudeID>>::Output
fn add(self, rhs: &AmplitudeID) -> <Expression as Add<&AmplitudeID>>::Output
Performs the
+ operation. Read moreSource§impl Add<&Expression> for &AmplitudeID
impl Add<&Expression> for &AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &Expression) -> <&AmplitudeID as Add<&Expression>>::Output
fn add(self, rhs: &Expression) -> <&AmplitudeID as Add<&Expression>>::Output
Performs the
+ operation. Read moreSource§impl Add<&Expression> for AmplitudeID
impl Add<&Expression> for AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &Expression) -> <AmplitudeID as Add<&Expression>>::Output
fn add(self, rhs: &Expression) -> <AmplitudeID as Add<&Expression>>::Output
Performs the
+ operation. Read moreSource§impl Add<AmplitudeID> for &AmplitudeID
impl Add<AmplitudeID> for &AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: AmplitudeID) -> <&AmplitudeID as Add<AmplitudeID>>::Output
fn add(self, rhs: AmplitudeID) -> <&AmplitudeID as Add<AmplitudeID>>::Output
Performs the
+ operation. Read moreSource§impl Add<AmplitudeID> for &Expression
impl Add<AmplitudeID> for &Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: AmplitudeID) -> <&Expression as Add<AmplitudeID>>::Output
fn add(self, rhs: AmplitudeID) -> <&Expression as Add<AmplitudeID>>::Output
Performs the
+ operation. Read moreSource§impl Add<AmplitudeID> for Expression
impl Add<AmplitudeID> for Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: AmplitudeID) -> <Expression as Add<AmplitudeID>>::Output
fn add(self, rhs: AmplitudeID) -> <Expression as Add<AmplitudeID>>::Output
Performs the
+ operation. Read moreSource§impl Add<Expression> for &AmplitudeID
impl Add<Expression> for &AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: Expression) -> <&AmplitudeID as Add<Expression>>::Output
fn add(self, rhs: Expression) -> <&AmplitudeID as Add<Expression>>::Output
Performs the
+ operation. Read moreSource§impl Add<Expression> for AmplitudeID
impl Add<Expression> for AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: Expression) -> <AmplitudeID as Add<Expression>>::Output
fn add(self, rhs: Expression) -> <AmplitudeID as Add<Expression>>::Output
Performs the
+ operation. Read moreSource§impl Add for AmplitudeID
impl Add for AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+ operator.Source§fn add(self, rhs: AmplitudeID) -> <AmplitudeID as Add>::Output
fn add(self, rhs: AmplitudeID) -> <AmplitudeID as Add>::Output
Performs the
+ operation. Read moreSource§impl Clone for AmplitudeID
impl Clone for AmplitudeID
Source§fn clone(&self) -> AmplitudeID
fn clone(&self) -> AmplitudeID
Returns a copy 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 AmplitudeID
impl Debug for AmplitudeID
Source§impl Default for AmplitudeID
impl Default for AmplitudeID
Source§fn default() -> AmplitudeID
fn default() -> AmplitudeID
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AmplitudeID
impl<'de> Deserialize<'de> for AmplitudeID
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AmplitudeID, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AmplitudeID, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AmplitudeID
impl Display for AmplitudeID
Source§impl From<AmplitudeID> for Expression
impl From<AmplitudeID> for Expression
Source§fn from(value: AmplitudeID) -> Expression
fn from(value: AmplitudeID) -> Expression
Converts to this type from the input type.
Source§impl Mul<&AmplitudeID> for &AmplitudeID
impl Mul<&AmplitudeID> for &AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &AmplitudeID) -> <&AmplitudeID as Mul<&AmplitudeID>>::Output
fn mul(self, rhs: &AmplitudeID) -> <&AmplitudeID as Mul<&AmplitudeID>>::Output
Performs the
* operation. Read moreSource§impl Mul<&AmplitudeID> for &Expression
impl Mul<&AmplitudeID> for &Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &AmplitudeID) -> <&Expression as Mul<&AmplitudeID>>::Output
fn mul(self, rhs: &AmplitudeID) -> <&Expression as Mul<&AmplitudeID>>::Output
Performs the
* operation. Read moreSource§impl Mul<&AmplitudeID> for AmplitudeID
impl Mul<&AmplitudeID> for AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &AmplitudeID) -> <AmplitudeID as Mul<&AmplitudeID>>::Output
fn mul(self, rhs: &AmplitudeID) -> <AmplitudeID as Mul<&AmplitudeID>>::Output
Performs the
* operation. Read moreSource§impl Mul<&AmplitudeID> for Expression
impl Mul<&AmplitudeID> for Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &AmplitudeID) -> <Expression as Mul<&AmplitudeID>>::Output
fn mul(self, rhs: &AmplitudeID) -> <Expression as Mul<&AmplitudeID>>::Output
Performs the
* operation. Read moreSource§impl Mul<&Expression> for &AmplitudeID
impl Mul<&Expression> for &AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &Expression) -> <&AmplitudeID as Mul<&Expression>>::Output
fn mul(self, rhs: &Expression) -> <&AmplitudeID as Mul<&Expression>>::Output
Performs the
* operation. Read moreSource§impl Mul<&Expression> for AmplitudeID
impl Mul<&Expression> for AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &Expression) -> <AmplitudeID as Mul<&Expression>>::Output
fn mul(self, rhs: &Expression) -> <AmplitudeID as Mul<&Expression>>::Output
Performs the
* operation. Read moreSource§impl Mul<AmplitudeID> for &AmplitudeID
impl Mul<AmplitudeID> for &AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: AmplitudeID) -> <&AmplitudeID as Mul<AmplitudeID>>::Output
fn mul(self, rhs: AmplitudeID) -> <&AmplitudeID as Mul<AmplitudeID>>::Output
Performs the
* operation. Read moreSource§impl Mul<AmplitudeID> for &Expression
impl Mul<AmplitudeID> for &Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: AmplitudeID) -> <&Expression as Mul<AmplitudeID>>::Output
fn mul(self, rhs: AmplitudeID) -> <&Expression as Mul<AmplitudeID>>::Output
Performs the
* operation. Read moreSource§impl Mul<AmplitudeID> for Expression
impl Mul<AmplitudeID> for Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: AmplitudeID) -> <Expression as Mul<AmplitudeID>>::Output
fn mul(self, rhs: AmplitudeID) -> <Expression as Mul<AmplitudeID>>::Output
Performs the
* operation. Read moreSource§impl Mul<Expression> for &AmplitudeID
impl Mul<Expression> for &AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: Expression) -> <&AmplitudeID as Mul<Expression>>::Output
fn mul(self, rhs: Expression) -> <&AmplitudeID as Mul<Expression>>::Output
Performs the
* operation. Read moreSource§impl Mul<Expression> for AmplitudeID
impl Mul<Expression> for AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: Expression) -> <AmplitudeID as Mul<Expression>>::Output
fn mul(self, rhs: Expression) -> <AmplitudeID as Mul<Expression>>::Output
Performs the
* operation. Read moreSource§impl Mul for AmplitudeID
impl Mul for AmplitudeID
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
* operator.Source§fn mul(self, rhs: AmplitudeID) -> <AmplitudeID as Mul>::Output
fn mul(self, rhs: AmplitudeID) -> <AmplitudeID as Mul>::Output
Performs the
* operation. Read moreSource§impl Serialize for AmplitudeID
impl Serialize for AmplitudeID
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AmplitudeID
impl RefUnwindSafe for AmplitudeID
impl Send for AmplitudeID
impl Sync for AmplitudeID
impl Unpin for AmplitudeID
impl UnwindSafe for AmplitudeID
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.