Struct faer_core::zip::ZipEq

source ·
pub struct ZipEq<Rows, Cols, Head: MatShape<Rows = Rows, Cols = Cols>, Tail: MatShape<Rows = Rows, Cols = Cols>>(/* private fields */);

Implementations§

source§

impl<Rows: Copy + Eq, Cols: Copy + Eq, Head: MatShape<Rows = Rows, Cols = Cols>, Tail: MatShape<Rows = Rows, Cols = Cols>> ZipEq<Rows, Cols, Head, Tail>

source

pub fn new(head: Head, tail: Tail) -> Self

source

pub fn new_unchecked(head: Head, tail: Tail) -> Self

source§

impl<Head: for<'a> MatIndex<'a, Rows = (), Cols = usize, Index = ((), usize), LayoutTransform = VecLayoutTransform>, Tail: for<'a> MatIndex<'a, Rows = (), Cols = usize, Index = ((), usize), LayoutTransform = VecLayoutTransform>> ZipEq<(), usize, Head, Tail>

source

pub fn for_each(self, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item))

source

pub fn map<E: Entity>( self, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item) -> E ) -> Row<E>

source§

impl<Head: for<'a> MatIndex<'a, Rows = usize, Cols = (), Index = (usize, ()), LayoutTransform = VecLayoutTransform>, Tail: for<'a> MatIndex<'a, Rows = usize, Cols = (), Index = (usize, ()), LayoutTransform = VecLayoutTransform>> ZipEq<usize, (), Head, Tail>

source

pub fn for_each(self, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item))

source

pub fn map<E: Entity>( self, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item) -> E ) -> Col<E>

source§

impl<Head: for<'a> MatIndex<'a, Rows = usize, Cols = usize, Index = (usize, usize), LayoutTransform = MatLayoutTransform>, Tail: for<'a> MatIndex<'a, Rows = usize, Cols = usize, Index = (usize, usize), LayoutTransform = MatLayoutTransform>> ZipEq<usize, usize, Head, Tail>

source

pub fn for_each(self, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item))

source

pub fn for_each_triangular_lower( self, diag: Diag, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item) )

source

pub fn for_each_triangular_upper( self, diag: Diag, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item) )

source

pub fn map<E: Entity>( self, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item) -> E ) -> Mat<E>

Trait Implementations§

source§

impl<Rows: Clone, Cols: Clone, Head: Clone + MatShape<Rows = Rows, Cols = Cols>, Tail: Clone + MatShape<Rows = Rows, Cols = Cols>> Clone for ZipEq<Rows, Cols, Head, Tail>

source§

fn clone(&self) -> ZipEq<Rows, Cols, Head, Tail>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Rows: Debug, Cols: Debug, Head: Debug + MatShape<Rows = Rows, Cols = Cols>, Tail: Debug + MatShape<Rows = Rows, Cols = Cols>> Debug for ZipEq<Rows, Cols, Head, Tail>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, Rows: Copy + Eq, Cols: Copy + Eq, Head: MatIndex<'a, Rows = Rows, Cols = Cols>, Tail: MatIndex<'a, Rows = Rows, Cols = Cols, Index = Head::Index, LayoutTransform = Head::LayoutTransform>> MatIndex<'a> for ZipEq<Rows, Cols, Head, Tail>

§

type Item = Zip<<Head as MatIndex<'a>>::Item, <Tail as MatIndex<'a>>::Item>

source§

unsafe fn get_unchecked(&'a mut self, index: Self::Index) -> Self::Item

source§

unsafe fn get_from_slice_unchecked( slice: &'a mut Self::Slice, idx: usize ) -> Self::Item

source§

fn is_contiguous(&self) -> bool

source§

fn preferred_layout(&self) -> Self::LayoutTransform

source§

fn with_layout(self, layout: Self::LayoutTransform) -> Self

source§

impl<Rows: Copy + Eq, Cols: Copy + Eq, Head: MatShape<Rows = Rows, Cols = Cols>, Tail: MatShape<Rows = Rows, Cols = Cols>> MatShape for ZipEq<Rows, Cols, Head, Tail>

§

type Rows = Rows

§

type Cols = Cols

source§

fn nrows(&self) -> Self::Rows

source§

fn ncols(&self) -> Self::Cols

source§

impl<Rows: Copy + Eq, Cols: Copy + Eq, Head: MaybeContiguous<Rows = Rows, Cols = Cols>, Tail: MaybeContiguous<Rows = Rows, Cols = Cols, Index = Head::Index, LayoutTransform = Head::LayoutTransform>> MaybeContiguous for ZipEq<Rows, Cols, Head, Tail>

§

type Index = <Head as MaybeContiguous>::Index

§

type Slice = Zip<<Head as MaybeContiguous>::Slice, <Tail as MaybeContiguous>::Slice>

§

type LayoutTransform = <Head as MaybeContiguous>::LayoutTransform

source§

unsafe fn get_slice_unchecked( &mut self, idx: Self::Index, n_elems: usize ) -> Self::Slice

source§

impl<Rows: Copy, Cols: Copy, Head: Copy + MatShape<Rows = Rows, Cols = Cols>, Tail: Copy + MatShape<Rows = Rows, Cols = Cols>> Copy for ZipEq<Rows, Cols, Head, Tail>

Auto Trait Implementations§

§

impl<Rows, Cols, Head, Tail> RefUnwindSafe for ZipEq<Rows, Cols, Head, Tail>
where Head: RefUnwindSafe, Tail: RefUnwindSafe,

§

impl<Rows, Cols, Head, Tail> Send for ZipEq<Rows, Cols, Head, Tail>
where Head: Send, Tail: Send,

§

impl<Rows, Cols, Head, Tail> Sync for ZipEq<Rows, Cols, Head, Tail>
where Head: Sync, Tail: Sync,

§

impl<Rows, Cols, Head, Tail> Unpin for ZipEq<Rows, Cols, Head, Tail>
where Head: Unpin, Tail: Unpin,

§

impl<Rows, Cols, Head, Tail> UnwindSafe for ZipEq<Rows, Cols, Head, Tail>
where Head: UnwindSafe, Tail: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.