Format Identifier value on record with the SMPTE Registration Authority for use in MPEG Transport Stream data.
(This create is automatically generated from a mirror of the SMPTE-RA data by code in the smptera-format-identifiers-rust project.)
The simple wrapper type FormatIdentifier
defines a constant
for each format identifier in the SMPTE-RA data,
# use FormatIdentifier;
use stdout;
println!;
// prints: FormatIdentifier(FourCC{AC-3})
Usage
Create from a slice,
# use FormatIdentifier;
let descriptor_data = b"\x05\x04CUEI";
let id = from;
assert_eq!;
Wrap an existing FourCC value,
# use FormatIdentifier;
# use FourCC;
let fcc = FourCC;
let id = FormatIdentifier;
assert_eq!;
Use provided constants in matches,
# use FormatIdentifier;
# let descriptor_data = b"\x05\x04CUEI";
match from
Write bytes values,
# use FormatIdentifier;
# use ;
let mut data = vec!;
let mut io = new;
let id = &ID3;
io.write
.expect;
assert_eq!;