Struct surge_modulation::imports::FilterBlockConfigurationArray [−][src]
pub struct FilterBlockConfigurationArray<T> { /* fields omitted */ }
Expand description
Container to associate each enum variant with a datum.
This is an array type and it implements much of the array API, with a few caveats and exceptions. The foremost deviation from the standard array API is that this container must be indexed using variants of the correct enum type.
Implementations
Create a new array filled with the given value.
pub fn new_with<F>(initial_value: F) -> FilterBlockConfigurationArray<T> where
F: Fn(FilterBlockConfiguration) -> T,
pub fn new_with<F>(initial_value: F) -> FilterBlockConfigurationArray<T> where
F: Fn(FilterBlockConfiguration) -> T,
Create a new array using a closure to associate each enum variant with its initial value.
Iterate and Enumerate, where Enumerate yields enum variants instead of usize.
pub fn iter_mut_enumerate(
&'a mut self
) -> impl Iterator<Item = (FilterBlockConfiguration, &'a mut T)>
pub fn iter_mut_enumerate(
&'a mut self
) -> impl Iterator<Item = (FilterBlockConfiguration, &'a mut T)>
Iterate and Enumerate, where Enumerate yields enum variants instead of usize.
Returns an array like self, with function f applied to each element.
Trait Implementations
Returns the “default value” for a type. Read more
type Output = T
type Output = T
The returned type after indexing.
pub fn index(
&self,
x: FilterBlockConfiguration
) -> &<FilterBlockConfigurationArray<T> as Index<FilterBlockConfiguration>>::Output
pub fn index(
&self,
x: FilterBlockConfiguration
) -> &<FilterBlockConfigurationArray<T> as Index<FilterBlockConfiguration>>::Output
Performs the indexing (container[index]
) operation. Read more
pub fn index_mut(
&mut self,
x: FilterBlockConfiguration
) -> &mut <FilterBlockConfigurationArray<T> as Index<FilterBlockConfiguration>>::Output
pub fn index_mut(
&mut self,
x: FilterBlockConfiguration
) -> &mut <FilterBlockConfigurationArray<T> as Index<FilterBlockConfiguration>>::Output
Performs the mutable indexing (container[index]
) operation. Read more
impl<T> PartialEq<FilterBlockConfigurationArray<T>> for FilterBlockConfigurationArray<T> where
T: PartialEq<T>,
impl<T> PartialEq<FilterBlockConfigurationArray<T>> for FilterBlockConfigurationArray<T> where
T: PartialEq<T>,
impl<T> PartialOrd<FilterBlockConfigurationArray<T>> for FilterBlockConfigurationArray<T> where
T: PartialOrd<T>,
impl<T> PartialOrd<FilterBlockConfigurationArray<T>> for FilterBlockConfigurationArray<T> where
T: PartialOrd<T>,
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for FilterBlockConfigurationArray<T> where
T: RefUnwindSafe,
impl<T> Send for FilterBlockConfigurationArray<T> where
T: Send,
impl<T> Sync for FilterBlockConfigurationArray<T> where
T: Sync,
impl<T> Unpin for FilterBlockConfigurationArray<T> where
T: Unpin,
impl<T> UnwindSafe for FilterBlockConfigurationArray<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more