#[non_exhaustive]pub struct PitchEnvelopeGroups {
pub pitch: Option<PitchValues>,
pub voices: Option<VoicesValues>,
pub envelope: Option<EnvelopeValues>,
}Expand description
The pitch, voices and envelope groups of the layer report, as the
mapper reads them. Each group is None when the report holds no
values for it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pitch: Option<PitchValues>The pitch group.
voices: Option<VoicesValues>The voices group.
envelope: Option<EnvelopeValues>The envelope group.
Implementations§
Source§impl PitchEnvelopeGroups
impl PitchEnvelopeGroups
Sourcepub fn from_layers(
pitch: &PitchLayer,
voices: &VoicesLayer,
envelope: &EnvelopeLayer,
) -> Self
pub fn from_layers( pitch: &PitchLayer, voices: &VoicesLayer, envelope: &EnvelopeLayer, ) -> Self
The groups of the three layers, with the values layers.json holds.
Trait Implementations§
Source§impl Clone for PitchEnvelopeGroups
impl Clone for PitchEnvelopeGroups
Source§impl Debug for PitchEnvelopeGroups
impl Debug for PitchEnvelopeGroups
Source§impl Default for PitchEnvelopeGroups
impl Default for PitchEnvelopeGroups
Source§impl PartialEq for PitchEnvelopeGroups
impl PartialEq for PitchEnvelopeGroups
impl StructuralPartialEq for PitchEnvelopeGroups
Auto Trait Implementations§
impl Freeze for PitchEnvelopeGroups
impl RefUnwindSafe for PitchEnvelopeGroups
impl Send for PitchEnvelopeGroups
impl Sync for PitchEnvelopeGroups
impl Unpin for PitchEnvelopeGroups
impl UnsafeUnpin for PitchEnvelopeGroups
impl UnwindSafe for PitchEnvelopeGroups
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more