Struct rustitude_core::amplitude::Imag
source · pub struct Imag<F: Field>(/* private fields */);Trait Implementations§
source§impl<F: Field> AmpLike<F> for Imag<F>
impl<F: Field> AmpLike<F> for Imag<F>
source§fn walk_mut(&mut self) -> Vec<&mut Amplitude<F>>
fn walk_mut(&mut self) -> Vec<&mut Amplitude<F>>
This method is similar to
AmpLike::walk, but returns mutable references rather than
clones.source§fn real(&self) -> Real<F>where
Self: Sized + 'static,
fn real(&self) -> Real<F>where
Self: Sized + 'static,
Take the real part of an
Amplitude or Amplitude-like struct.source§fn imag(&self) -> Imag<F>where
Self: Sized + 'static,
fn imag(&self) -> Imag<F>where
Self: Sized + 'static,
Take the imaginary part of an
Amplitude or Amplitude-like struct.source§impl<F: Field> AsTree for Imag<F>
impl<F: Field> AsTree for Imag<F>
source§fn _get_tree(&self, bits: &mut Vec<bool>) -> String
fn _get_tree(&self, bits: &mut Vec<bool>) -> String
Prints the tree of an
AsTree-implementor 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 get_tree(&self) -> String
fn get_tree(&self) -> String
Returns a string representing the node and its children with tree formatting.
source§fn _get_indent(&self, bits: Vec<bool>) -> String
fn _get_indent(&self, bits: Vec<bool>) -> String
Returns a string with the proper indents for a given entry in
AsTree::get_tree. A true bit will yield a vertical line, while a
false bit will not.source§fn _get_intermediate(&self) -> String
fn _get_intermediate(&self) -> String
Returns a string with the intermediate branch symbol for a given entry in
AsTree::get_tree.source§fn _get_end(&self) -> String
fn _get_end(&self) -> String
Prints the a final branch for a given entry in
AsTree::get_tree.Auto Trait Implementations§
impl<F> Freeze for Imag<F>
impl<F> !RefUnwindSafe for Imag<F>
impl<F> Send for Imag<F>
impl<F> Sync for Imag<F>
impl<F> Unpin for Imag<F>
impl<F> !UnwindSafe for Imag<F>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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> 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.