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 tag (binary literal: b"MThd")

Format 2 (binary literal: b"MTrk")

Methods

impl Tag
[src]

[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]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Clone for Tag
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Tag
[src]

impl Debug for Tag
[src]

[src]

Formats the value using the given formatter.