Enum openal::source::Offset [] [src]

pub enum Offset {
    Seconds(f32),
    Samples(f32),
    Bytes(f32),
}

Represents the offset withing a Source.

Variants

The offset is represented in seconds.

The offset is represented in samples.

The offset is represented in bytes.

Methods

impl Offset
[src]

Get the offset in seconds.

Get the offset in samples.

Get the offset in bytes.

Return a type hint for Source::offset.

Return a type hint for Source::offset.

Return a type hint for Source::offset.

Trait Implementations

impl PartialEq for Offset
[src]

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

This method tests for !=.

impl Copy for Offset
[src]

impl Clone for Offset
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Offset
[src]

Formats the value using the given formatter.