Struct signal_processing::ProductSequence
source · pub struct ProductSequence<T, S>where
S: MaybeList<T>,{ /* private fields */ }
Implementations§
source§impl<T, S> ProductSequence<T, S>where
S: MaybeList<T>,
impl<T, S> ProductSequence<T, S>where
S: MaybeList<T>,
pub fn new(s: S) -> Self
pub type View<'a> = ProductSequence<T, <S as MaybeContainer<T>>::View<'a>> where S::View<'a>: MaybeList<T>, Self: 'a
pub type Owned = ProductSequence<T, <S as MaybeContainer<T>>::Owned> where S::Owned: MaybeList<T>
pub fn as_view<'a>(&'a self) -> ProductSequence<T, S::View<'a>>
pub fn to_owned(&self) -> ProductSequence<T, S::Owned>
pub fn into_owned(self) -> ProductSequence<T, S::Owned>
pub fn into_inner(self) -> S
pub fn one() -> Self
pub fn is_one(&self) -> bool
Trait Implementations§
source§impl<T, S> Borrow<S> for ProductSequence<T, S>where
S: MaybeList<T>,
impl<T, S> Borrow<S> for ProductSequence<T, S>where
S: MaybeList<T>,
source§impl<T, S> BorrowMut<S> for ProductSequence<T, S>where
S: MaybeList<T>,
impl<T, S> BorrowMut<S> for ProductSequence<T, S>where
S: MaybeList<T>,
source§fn borrow_mut(&mut self) -> &mut S
fn borrow_mut(&mut self) -> &mut S
Mutably borrows from an owned value. Read more
source§impl<T: Clone, S> Clone for ProductSequence<T, S>
impl<T: Clone, S> Clone for ProductSequence<T, S>
source§fn clone(&self) -> ProductSequence<T, S>
fn clone(&self) -> ProductSequence<T, S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T, S> Debug for ProductSequence<T, S>
impl<T, S> Debug for ProductSequence<T, S>
source§impl<T, S> Default for ProductSequence<T, S>
impl<T, S> Default for ProductSequence<T, S>
source§impl<T, S> Deref for ProductSequence<T, S>where
S: MaybeList<T>,
impl<T, S> Deref for ProductSequence<T, S>where
S: MaybeList<T>,
source§impl<T, S> DerefMut for ProductSequence<T, S>where
S: MaybeList<T>,
impl<T, S> DerefMut for ProductSequence<T, S>where
S: MaybeList<T>,
source§impl<'a, T, const M: usize> From<ProductSequence<T, &'a [T; M]>> for ProductSequence<T, &'a [T]>
impl<'a, T, const M: usize> From<ProductSequence<T, &'a [T; M]>> for ProductSequence<T, &'a [T]>
source§fn from(s: ProductSequence<T, &'a [T; M]>) -> Self
fn from(s: ProductSequence<T, &'a [T; M]>) -> Self
Converts to this type from the input type.
source§impl<T1, T2> From<ProductSequence<T1, &[T1]>> for ProductSequence<T2, Vec<T2>>
impl<T1, T2> From<ProductSequence<T1, &[T1]>> for ProductSequence<T2, Vec<T2>>
source§fn from(s: ProductSequence<T1, &[T1]>) -> Self
fn from(s: ProductSequence<T1, &[T1]>) -> Self
Converts to this type from the input type.
source§impl<T1, T2, const M: usize> From<ProductSequence<T1, &[T1; M]>> for ProductSequence<T2, [T2; M]>
impl<T1, T2, const M: usize> From<ProductSequence<T1, &[T1; M]>> for ProductSequence<T2, [T2; M]>
source§fn from(s: ProductSequence<T1, &[T1; M]>) -> Self
fn from(s: ProductSequence<T1, &[T1; M]>) -> Self
Converts to this type from the input type.
source§impl<T1, T2, const M: usize> From<ProductSequence<T1, &[T1; M]>> for ProductSequence<T2, Vec<T2>>
impl<T1, T2, const M: usize> From<ProductSequence<T1, &[T1; M]>> for ProductSequence<T2, Vec<T2>>
source§fn from(s: ProductSequence<T1, &[T1; M]>) -> Self
fn from(s: ProductSequence<T1, &[T1; M]>) -> Self
Converts to this type from the input type.
source§impl<T1, T2, const M: usize> From<ProductSequence<T1, [T1; M]>> for ProductSequence<T2, Vec<T2>>where
T1: Into<T2>,
impl<T1, T2, const M: usize> From<ProductSequence<T1, [T1; M]>> for ProductSequence<T2, Vec<T2>>where
T1: Into<T2>,
source§fn from(s: ProductSequence<T1, [T1; M]>) -> Self
fn from(s: ProductSequence<T1, [T1; M]>) -> Self
Converts to this type from the input type.
source§impl<T1, T2> From<ProductSequence<T1, ()>> for ProductSequence<T2, &[T2]>
impl<T1, T2> From<ProductSequence<T1, ()>> for ProductSequence<T2, &[T2]>
source§fn from(_: ProductSequence<T1, ()>) -> Self
fn from(_: ProductSequence<T1, ()>) -> Self
Converts to this type from the input type.
source§impl<T1, T2> From<ProductSequence<T1, ()>> for ProductSequence<T2, &[T2; 0]>
impl<T1, T2> From<ProductSequence<T1, ()>> for ProductSequence<T2, &[T2; 0]>
source§fn from(_: ProductSequence<T1, ()>) -> Self
fn from(_: ProductSequence<T1, ()>) -> Self
Converts to this type from the input type.
source§impl<T1, T2> From<ProductSequence<T1, ()>> for ProductSequence<T2, [T2; 0]>
impl<T1, T2> From<ProductSequence<T1, ()>> for ProductSequence<T2, [T2; 0]>
source§fn from(_: ProductSequence<T1, ()>) -> Self
fn from(_: ProductSequence<T1, ()>) -> Self
Converts to this type from the input type.
source§impl<T1, T2> From<ProductSequence<T1, ()>> for ProductSequence<T2, Vec<T2>>
impl<T1, T2> From<ProductSequence<T1, ()>> for ProductSequence<T2, Vec<T2>>
source§fn from(_: ProductSequence<T1, ()>) -> Self
fn from(_: ProductSequence<T1, ()>) -> Self
Converts to this type from the input type.
source§impl<T, S1, S2> Mul<ProductSequence<T, S2>> for ProductSequence<T, S1>
impl<T, S1, S2> Mul<ProductSequence<T, S2>> for ProductSequence<T, S1>
source§impl<T, S> One for ProductSequence<T, S>
impl<T, S> One for ProductSequence<T, S>
source§impl<T, S, I> Pow<I> for ProductSequence<T, S>
impl<T, S, I> Pow<I> for ProductSequence<T, S>
source§impl<T, S1, S2> Product<ProductSequence<T, S1>> for ProductSequence<T, S2>where
S1: MaybeList<T>,
S2: MaybeList<T>,
ProductSequence<T, S1>: Into<ProductSequence<T, S2>>,
ProductSequence<T, S2>: One,
impl<T, S1, S2> Product<ProductSequence<T, S1>> for ProductSequence<T, S2>where
S1: MaybeList<T>,
S2: MaybeList<T>,
ProductSequence<T, S1>: Into<ProductSequence<T, S2>>,
ProductSequence<T, S2>: One,
source§fn product<I: Iterator<Item = ProductSequence<T, S1>>>(iter: I) -> Self
fn product<I: Iterator<Item = ProductSequence<T, S1>>>(iter: I) -> Self
Method which takes an iterator and generates
Self
from the elements by
multiplying the items.source§impl<'a, T, const M: usize> TryFrom<ProductSequence<T, &'a [T]>> for ProductSequence<T, &'a [T; M]>
impl<'a, T, const M: usize> TryFrom<ProductSequence<T, &'a [T]>> for ProductSequence<T, &'a [T; M]>
§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
source§impl<T1, T2, const M: usize> TryFrom<ProductSequence<T1, &[T1]>> for ProductSequence<T2, [T2; M]>
impl<T1, T2, const M: usize> TryFrom<ProductSequence<T1, &[T1]>> for ProductSequence<T2, [T2; M]>
§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
source§impl<T1, T2, const M: usize> TryFrom<ProductSequence<T1, Vec<T1>>> for ProductSequence<T2, [T2; M]>where
T1: Into<T2>,
impl<T1, T2, const M: usize> TryFrom<ProductSequence<T1, Vec<T1>>> for ProductSequence<T2, [T2; M]>where
T1: Into<T2>,
impl<T: Copy, S> Copy for ProductSequence<T, S>
impl<T, S> NotVoid for ProductSequence<T, S>where
S: MaybeList<T>,
Auto Trait Implementations§
impl<T, S> Freeze for ProductSequence<T, S>where
S: Freeze,
impl<T, S> NotPolynomial for ProductSequence<T, S>where
S: NotPolynomial,
T: NotPolynomial,
impl<T, S> NotRange for ProductSequence<T, S>
impl<T, S> RefUnwindSafe for ProductSequence<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for ProductSequence<T, S>
impl<T, S> Sync for ProductSequence<T, S>
impl<T, S> Unpin for ProductSequence<T, S>
impl<T, S> UnwindSafe for ProductSequence<T, S>where
S: UnwindSafe,
T: UnwindSafe,
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> ListOrSingle<T> for T
impl<T> ListOrSingle<T> for T
source§impl<T, E> ResultOrOk<T, E> for T
impl<T, E> ResultOrOk<T, E> for T
source§impl<Some> StaticMaybe<Some> for Some
impl<Some> StaticMaybe<Some> for Some
const IS_SOME: bool = true
const IS_NONE: bool = false
type None = ()
type Some = Some
type Opposite = ()
type Maybe<M: StaticMaybe<M> + ?Sized> = <M as StaticMaybe<M>>::Some
type MaybeOr<M: ?Sized, O: ?Sized> = M
fn maybe_from_fn<F>(func: F) -> Somewhere
F: FnOnce() -> Some,
fn maybe_or_from_fn<M, O>( maybe: M, _or: O ) -> <Some as StaticMaybe<Some>>::MaybeOr<<M as FnOnce()>::Output, <O as FnOnce()>::Output>
fn maybe_map<F>( self, map: F ) -> <Some as StaticMaybe<Some>>::Maybe<<F as FnOnce(Some)>::Output>
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.