Struct floaout::oao::OaoMetadata
source · [−]pub struct OaoMetadata {
pub spec_version: u8,
pub oao_id: OaoID,
pub oao_version: u16,
pub frames: u64,
pub samples_per_sec: f64,
pub lpcm_kind: LpcmKind,
pub title: String,
pub artist: String,
pub bubs: Vec<BubInOao>,
}
Fields
spec_version: u8
Version of Floaout File Format Specification.
oao_id: OaoID
Floaout ID
oao_version: u16
Version of Floaout
frames: u64
Number of frames
samples_per_sec: f64
Samples Per Sec
lpcm_kind: LpcmKind
Bits Per Sample
title: String
Title of Floaout
artist: String
Artist of Floaout
bubs: Vec<BubInOao>
Implementations
sourceimpl OaoMetadata
impl OaoMetadata
pub const fn new(
frames: u64,
samples_per_sec: f64,
lpcm_kind: LpcmKind,
title: String,
artist: String,
bubs: Vec<BubInOao>
) -> Self
pub const fn frames(&self) -> u64
pub const fn lpcm_kind(&self) -> LpcmKind
pub const fn samples_per_sec(&self) -> f64
pub const fn secs(&self) -> u64
pub const fn millis(&self) -> u128
pub const fn micros(&self) -> u128
pub const fn nanos(&self) -> u128
pub fn read<R: Read>(reader: &mut R) -> Result<Self>
pub fn write<W: Write>(&self, writer: &mut W) -> Result<()>
Trait Implementations
sourceimpl Clone for OaoMetadata
impl Clone for OaoMetadata
sourcefn clone(&self) -> OaoMetadata
fn clone(&self) -> OaoMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OaoMetadata
impl Debug for OaoMetadata
sourceimpl PartialEq<OaoMetadata> for OaoMetadata
impl PartialEq<OaoMetadata> for OaoMetadata
sourcefn eq(&self, other: &OaoMetadata) -> bool
fn eq(&self, other: &OaoMetadata) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OaoMetadata) -> bool
fn ne(&self, other: &OaoMetadata) -> bool
This method tests for !=
.
impl Metadata for OaoMetadata
impl StructuralPartialEq for OaoMetadata
Auto Trait Implementations
impl RefUnwindSafe for OaoMetadata
impl Send for OaoMetadata
impl Sync for OaoMetadata
impl Unpin for OaoMetadata
impl UnwindSafe for OaoMetadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more