Struct rustitude_core::amplitude::Product
source · pub struct Product(/* private fields */);Trait Implementations§
source§impl AmpLike for Product
impl AmpLike for Product
source§fn walk_mut(&mut self) -> Vec<&mut Amplitude>
fn walk_mut(&mut self) -> Vec<&mut Amplitude>
This method is similar to
AmpLike::walk, but returns mutable references rather than
clones.source§fn _print_tree(&self, bits: &mut Vec<bool>)
fn _print_tree(&self, bits: &mut Vec<bool>)
Prints the tree of
AmpLikes starting with a particular indentation structure
defined by bits. A true bit will print a vertical line, while a false bit
will not.source§fn real(&self) -> Realwhere
Self: Sized + 'static,
fn real(&self) -> Realwhere
Self: Sized + 'static,
Take the real part of an
Amplitude or Amplitude-like struct.source§fn imag(&self) -> Imagwhere
Self: Sized + 'static,
fn imag(&self) -> Imagwhere
Self: Sized + 'static,
Take the imaginary part of an
Amplitude or Amplitude-like struct.source§fn prod(als: &Vec<Box<dyn AmpLike>>) -> Productwhere
Self: Sized + 'static,
fn prod(als: &Vec<Box<dyn AmpLike>>) -> Productwhere
Self: Sized + 'static,
Take the product of a
Vec of Amplitude-like structs.source§fn sum(als: &Vec<Box<dyn AmpLike>>) -> CohSumwhere
Self: Sized + 'static,
fn sum(als: &Vec<Box<dyn AmpLike>>) -> CohSumwhere
Self: Sized + 'static,
Take the coherent sum (absolute square of the sum) of a
Vec of Amplitude-like structs.source§fn as_cohsum(&self) -> CohSumwhere
Self: Sized + 'static,
fn as_cohsum(&self) -> CohSumwhere
Self: Sized + 'static,
Returns the given
AmpLike as a coherent sum containing only itself.source§fn print_tree(&self)
fn print_tree(&self)
Pretty-prints the structure of
AmpLike structs starting at the current node.source§fn _print_indent(&self, bits: Vec<bool>)
fn _print_indent(&self, bits: Vec<bool>)
Prints the proper indents for a given entry in
AmpLike::print_tree. A true bit will print a vertical line, while a false bit
will not.source§fn _print_intermediate(&self)
fn _print_intermediate(&self)
Prints the an intermediate branch for a given entry in
AmpLike::print_tree.source§fn _print_end(&self)
fn _print_end(&self)
Prints the a final branch for a given entry in
AmpLike::print_tree.Auto Trait Implementations§
impl Freeze for Product
impl !RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl !UnwindSafe for Product
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> 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<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.