#[repr(transparent)]pub struct MusicSequenceType(pub u32);
Available on crate feature
MusicPlayer
only.Expand description
A sequence type
Different sequence types to describe the basic mode of operation of a sequence’s time line You cannot change a music sequence’s type to samples/seconds if there are tempo events The type will also define how the sequence is saved to a MIDI file: Beats - normal midi file Seconds - midi file with SMPTE time Samples - cannot be saved to a midi file
The default/normal type of a sequence. Tempo track defines the number of beats per second and can have multiple tempo events
A music sequence with a single 60bpm tempo event
A music sequence with a single tempo event that represents the audio sample rate
See also Apple’s documentation
Tuple Fields§
§0: u32
Implementations§
Trait Implementations§
Source§impl Clone for MusicSequenceType
impl Clone for MusicSequenceType
Source§fn clone(&self) -> MusicSequenceType
fn clone(&self) -> MusicSequenceType
Returns a duplicate 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 Debug for MusicSequenceType
impl Debug for MusicSequenceType
Source§impl Encode for MusicSequenceType
impl Encode for MusicSequenceType
Source§impl Hash for MusicSequenceType
impl Hash for MusicSequenceType
Source§impl Ord for MusicSequenceType
impl Ord for MusicSequenceType
Source§fn cmp(&self, other: &MusicSequenceType) -> Ordering
fn cmp(&self, other: &MusicSequenceType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MusicSequenceType
impl PartialEq for MusicSequenceType
Source§impl PartialOrd for MusicSequenceType
impl PartialOrd for MusicSequenceType
Source§impl RefEncode for MusicSequenceType
impl RefEncode for MusicSequenceType
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MusicSequenceType
impl Eq for MusicSequenceType
impl StructuralPartialEq for MusicSequenceType
Auto Trait Implementations§
impl Freeze for MusicSequenceType
impl RefUnwindSafe for MusicSequenceType
impl Send for MusicSequenceType
impl Sync for MusicSequenceType
impl Unpin for MusicSequenceType
impl UnwindSafe for MusicSequenceType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.