Enum openal::source::Offset
[−]
[src]
pub enum Offset { Seconds(f32), Samples(f32), Bytes(f32), }
Represents the offset withing a Source
.
Variants
Seconds(f32)
The offset is represented in seconds.
Samples(f32)
The offset is represented in samples.
Bytes(f32)
The offset is represented in bytes.
Methods
impl Offset
[src]
fn seconds(value: f32) -> Self
Get the offset in seconds.
fn samples(value: f32) -> Self
Get the offset in samples.
fn bytes(value: f32) -> Self
Get the offset in bytes.
fn as_seconds() -> Self
Return a type hint for Source::offset
.
fn as_samples() -> Self
Return a type hint for Source::offset
.
fn as_bytes() -> Self
Return a type hint for Source::offset
.
Trait Implementations
impl PartialEq for Offset
[src]
fn eq(&self, __arg_0: &Offset) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Offset) -> bool
This method tests for !=
.
impl Copy for Offset
[src]
impl Clone for Offset
[src]
fn clone(&self) -> Offset
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more