[][src]Struct brakets::Bra

pub struct Bra<D: DimName>(_)
where
    DefaultAllocator: Allocator<Complex, U1, D>
;

Generic Bra. You can multiply it by ket to get an inner product (scalar).

Methods

impl<D: DimName> Bra<D> where
    DefaultAllocator: Allocator<Complex, U1, D>, 
[src]

pub fn up() -> Bra<U2>[src]

2-dimension "up" bra

pub fn down() -> Bra<U2>[src]

2-dimension "down" bra

pub fn right() -> Bra<U2>[src]

2-dimension "right" bra

pub fn left() -> Bra<U2>[src]

2-dimension "left" bra

pub fn inw() -> Bra<U2>[src]

2-dimension "inward" bra

pub fn out() -> Bra<U2>[src]

2-dimension "outward" bra

Trait Implementations

impl<D: DimName> From<Ket<D>> for Bra<D> where
    DefaultAllocator: Allocator<Complex, D> + Allocator<Complex, D, D> + Allocator<Complex, U1, D>, 
[src]

impl<D: DimName> From<Matrix<Complex<f64>, U1, D, <DefaultAllocator as Allocator<Complex<f64>, U1, D>>::Buffer>> for Bra<D> where
    DefaultAllocator: Allocator<Complex, U1, D>, 
[src]

impl<D: DimName> From<Bra<D>> for Ket<D> where
    DefaultAllocator: Allocator<Complex, D> + Allocator<Complex, D, D> + Allocator<Complex, U1, D>, 
[src]

impl<D: PartialEq + DimName> PartialEq<Bra<D>> for Bra<D> where
    DefaultAllocator: Allocator<Complex, U1, D>, 
[src]

impl<D: Clone + DimName> Clone for Bra<D> where
    DefaultAllocator: Allocator<Complex, U1, D>, 
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<D: DimName> Display for Bra<D> where
    DefaultAllocator: Allocator<Complex, U1, D>,
    DefaultAllocator: Allocator<usize, U1, D>, 
[src]

impl<D: Debug + DimName> Debug for Bra<D> where
    DefaultAllocator: Allocator<Complex, U1, D>, 
[src]

impl<D: DimName> Add<Bra<D>> for Bra<D> where
    DefaultAllocator: Allocator<Complex, U1, D>, 
[src]

type Output = Self

The resulting type after applying the + operator.

impl<D: DimName> Mul<Ket<D>> for Bra<D> where
    DefaultAllocator: Allocator<Complex, D> + Allocator<Complex, U1, D>, 
[src]

type Output = Complex

The resulting type after applying the * operator.

impl<D: DimName> Mul<Outer<D>> for Bra<D> where
    DefaultAllocator: Allocator<Complex, D, D> + Allocator<Complex, U1, D>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<D: DimName> Mul<Complex<f64>> for Bra<D> where
    DefaultAllocator: Allocator<Complex, U1, D>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<D: DimName> Mul<Bra<D>> for Ket<D> where
    DefaultAllocator: Allocator<Complex, D> + Allocator<Complex, D, D> + Allocator<Complex, U1, D>, 
[src]

type Output = Outer<D>

The resulting type after applying the * operator.

Auto Trait Implementations

impl<D> !Unpin for Bra<D>

impl<D> !Send for Bra<D>

impl<D> !Sync for Bra<D>

impl<D> !UnwindSafe for Bra<D>

impl<D> !RefUnwindSafe for Bra<D>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,