Enum ghakuf::formats::Tag
[−]
[src]
pub enum Tag { Header, Track, }
An enum representing SMF Tag "MThd" and "MTrk".
Examples
use ghakuf::formats::Tag; let tag = Tag::Header; assert_eq!(tag.binary(), b"MThd");
Variants
Header
Header tag (binary literal: b"MThd")
Track
Format 2 (binary literal: b"MTrk")
Methods
impl Tag
[src]
fn binary(&self) -> &[u8; 4]
[src]
Makes binary array for SMF.
Examples
use ghakuf::formats::Tag; assert_eq!(Tag::Track.binary(), b"MTrk");
Trait Implementations
impl PartialEq for Tag
[src]
fn eq(&self, __arg_0: &Tag) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for Tag
[src]
fn clone(&self) -> Tag
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more