pub enum PyVariable {
Mass(PyMass),
CosTheta(PyCosTheta),
Phi(PyPhi),
PolAngle(PyPolAngle),
PolMagnitude(PyPolMagnitude),
Mandelstam(PyMandelstam),
}Variants§
Mass(PyMass)
CosTheta(PyCosTheta)
Phi(PyPhi)
PolAngle(PyPolAngle)
PolMagnitude(PyPolMagnitude)
Mandelstam(PyMandelstam)
Trait Implementations§
Source§impl Clone for PyVariable
impl Clone for PyVariable
Source§fn clone(&self) -> PyVariable
fn clone(&self) -> PyVariable
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 moreSource§impl Debug for PyVariable
impl Debug for PyVariable
Source§impl<'de> Deserialize<'de> for PyVariable
impl<'de> Deserialize<'de> for PyVariable
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 PyVariable
impl Display for PyVariable
Source§impl<'py> FromPyObject<'_, 'py> for PyVariable
impl<'py> FromPyObject<'_, 'py> for PyVariable
Source§impl Serialize for PyVariable
impl Serialize for PyVariable
Source§impl Variable for PyVariable
impl Variable for PyVariable
Source§fn bind(&mut self, metadata: &DatasetMetadata) -> LadduResult<()>
fn bind(&mut self, metadata: &DatasetMetadata) -> LadduResult<()>
Bind the variable to dataset metadata so that any referenced names can be resolved to
concrete indices. Implementations that do not require metadata may keep the default
no-op.
Source§fn value(&self, event: &dyn EventLike) -> f64
fn value(&self, event: &dyn EventLike) -> f64
This method extracts a single value (like a mass) from an event access view.
Source§fn value_on_local(&self, dataset: &Dataset) -> Result<Vec<f64>, LadduError>
fn value_on_local(&self, dataset: &Dataset) -> Result<Vec<f64>, LadduError>
Source§fn eq(&self, val: f64) -> VariableExpressionwhere
Self: Sized + 'static,
fn eq(&self, val: f64) -> VariableExpressionwhere
Self: Sized + 'static,
Create an
VariableExpression that evaluates to self == valSource§fn lt(&self, val: f64) -> VariableExpressionwhere
Self: Sized + 'static,
fn lt(&self, val: f64) -> VariableExpressionwhere
Self: Sized + 'static,
Create an
VariableExpression that evaluates to self < valSource§fn gt(&self, val: f64) -> VariableExpressionwhere
Self: Sized + 'static,
fn gt(&self, val: f64) -> VariableExpressionwhere
Self: Sized + 'static,
Create an
VariableExpression that evaluates to self > valSource§fn ge(&self, val: f64) -> VariableExpressionwhere
Self: Sized + 'static,
fn ge(&self, val: f64) -> VariableExpressionwhere
Self: Sized + 'static,
Create an
VariableExpression that evaluates to self >= valSource§fn le(&self, val: f64) -> VariableExpressionwhere
Self: Sized + 'static,
fn le(&self, val: f64) -> VariableExpressionwhere
Self: Sized + 'static,
Create an
VariableExpression that evaluates to self <= valAuto Trait Implementations§
impl Freeze for PyVariable
impl RefUnwindSafe for PyVariable
impl Send for PyVariable
impl Sync for PyVariable
impl Unpin for PyVariable
impl UnsafeUnpin for PyVariable
impl UnwindSafe for PyVariable
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<T> SummaryExport for T
impl<T> SummaryExport for T
Source§fn to_pretty_string(&self) -> String
fn to_pretty_string(&self) -> String
Render the summary as a string using its
Display implementation.Source§fn to_json_string(&self) -> Result<String, Error>
fn to_json_string(&self) -> Result<String, Error>
Render the summary as a compact JSON string. Read more
Source§fn to_json_string_pretty(&self) -> Result<String, Error>
fn to_json_string_pretty(&self) -> Result<String, Error>
Render the summary as an indented JSON string. Read more
Source§fn render(&self) -> Result<RenderedSummary, Error>
fn render(&self) -> Result<RenderedSummary, Error>
Render the summary as both a display string and compact JSON in one call. Read more
Source§fn render_pretty_json(&self) -> Result<RenderedSummary, Error>
fn render_pretty_json(&self) -> Result<RenderedSummary, Error>
Render the summary as both a display string and indented JSON in one call. Read more
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.Source§impl<T> TransformExt for T
impl<T> TransformExt for T
Source§impl<T> VariableExpressionExt for Twhere
T: Variable + 'static,
impl<T> VariableExpressionExt for Twhere
T: Variable + 'static,
Source§fn as_expression(&self, tags: impl IntoTags) -> Result<Expression, LadduError>where
Self: Sized,
fn as_expression(&self, tags: impl IntoTags) -> Result<Expression, LadduError>where
Self: Sized,
Convert this variable into a real-valued
Expression.