Trait rust_blas::vector::ops::Swap

source ·
pub trait Swap: Sized {
    // Required method
    fn swap<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>(
        x: &mut V,
        y: &mut W
    );
}
Expand description

Swaps the content of x and y.

Required Methods§

source

fn swap<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( x: &mut V, y: &mut W )

If they are different lengths, the shorter length is used.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Swap for f32

source§

fn swap<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( x: &mut V, y: &mut W )

source§

impl Swap for f64

source§

fn swap<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( x: &mut V, y: &mut W )

source§

impl Swap for Complex32

source§

fn swap<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( x: &mut V, y: &mut W )

source§

impl Swap for Complex64

source§

fn swap<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( x: &mut V, y: &mut W )

Implementors§