Enum reaper_medium::EnvChunkName
source · [−]pub enum EnvChunkName<'a> {
VolEnv,
PanEnv,
VolEnv2,
PanEnv2,
WidthEnv,
WidthEnv2,
VolEnv3,
MuteEnv,
Custom(Cow<'a, ReaperStr>),
}
Expand description
Envelope chunk name which you can pass e.g. to TrackAttributeKey::Env()
.
Variants
VolEnv
Volume (Pre-FX)
PanEnv
Pan (Pre-FX)
VolEnv2
Volume
PanEnv2
Pan
WidthEnv
Width (Pre-FX)
WidthEnv2
Width
VolEnv3
Trim Volume
MuteEnv
Mute
Custom(Cow<'a, ReaperStr>)
Use this for all non-common envelope names.
Use custom()
to create this variant.
Implementations
sourceimpl<'a> EnvChunkName<'a>
impl<'a> EnvChunkName<'a>
sourcepub fn custom(name: impl Into<ReaperStringArg<'a>>) -> EnvChunkName<'a>
pub fn custom(name: impl Into<ReaperStringArg<'a>>) -> EnvChunkName<'a>
Convenience function for creating a Custom
name.
Trait Implementations
sourceimpl<'a> Clone for EnvChunkName<'a>
impl<'a> Clone for EnvChunkName<'a>
sourcefn clone(&self) -> EnvChunkName<'a>
fn clone(&self) -> EnvChunkName<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for EnvChunkName<'a>
impl<'a> Debug for EnvChunkName<'a>
sourceimpl<'a> Hash for EnvChunkName<'a>
impl<'a> Hash for EnvChunkName<'a>
sourceimpl<'a> PartialEq<EnvChunkName<'a>> for EnvChunkName<'a>
impl<'a> PartialEq<EnvChunkName<'a>> for EnvChunkName<'a>
sourcefn eq(&self, other: &EnvChunkName<'a>) -> bool
fn eq(&self, other: &EnvChunkName<'a>) -> bool
impl<'a> Eq for EnvChunkName<'a>
impl<'a> StructuralEq for EnvChunkName<'a>
impl<'a> StructuralPartialEq for EnvChunkName<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for EnvChunkName<'a>
impl<'a> Send for EnvChunkName<'a>
impl<'a> Sync for EnvChunkName<'a>
impl<'a> Unpin for EnvChunkName<'a>
impl<'a> UnwindSafe for EnvChunkName<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more