Struct surge_modulation::imports::FxBypassTypeArray [−][src]
pub struct FxBypassTypeArray<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.
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.
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: FxBypassType
) -> &<FxBypassTypeArray<T> as Index<FxBypassType>>::Output
pub fn index(
&self,
x: FxBypassType
) -> &<FxBypassTypeArray<T> as Index<FxBypassType>>::Output
Performs the indexing (container[index]
) operation. Read more
pub fn index_mut(
&mut self,
x: FxBypassType
) -> &mut <FxBypassTypeArray<T> as Index<FxBypassType>>::Output
pub fn index_mut(
&mut self,
x: FxBypassType
) -> &mut <FxBypassTypeArray<T> as Index<FxBypassType>>::Output
Performs the mutable indexing (container[index]
) operation. Read more
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 FxBypassTypeArray<T> where
T: RefUnwindSafe,
impl<T> Send for FxBypassTypeArray<T> where
T: Send,
impl<T> Sync for FxBypassTypeArray<T> where
T: Sync,
impl<T> Unpin for FxBypassTypeArray<T> where
T: Unpin,
impl<T> UnwindSafe for FxBypassTypeArray<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more