Struct twmap::SoundSource
source · [−]pub struct SoundSource {
pub position: Point,
pub looping: bool,
pub panning: bool,
pub delay: i32,
pub falloff: u8,
pub position_env: Option<u16>,
pub position_env_offset: i32,
pub sound_env: Option<u16>,
pub sound_env_offset: i32,
pub shape: SoundShape,
}
Fields
position: Point
looping: bool
panning: bool
delay: i32
falloff: u8
position_env: Option<u16>
position_env_offset: i32
sound_env: Option<u16>
sound_env_offset: i32
shape: SoundShape
Trait Implementations
sourceimpl Clone for SoundSource
impl Clone for SoundSource
sourcefn clone(&self) -> SoundSource
fn clone(&self) -> SoundSource
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 SoundSource
impl Debug for SoundSource
sourceimpl Default for SoundSource
impl Default for SoundSource
sourceimpl<'de> Deserialize<'de> for SoundSource
impl<'de> Deserialize<'de> for SoundSource
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<SoundSource> for SoundSource
impl PartialEq<SoundSource> for SoundSource
sourcefn eq(&self, other: &SoundSource) -> bool
fn eq(&self, other: &SoundSource) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SoundSource) -> bool
fn ne(&self, other: &SoundSource) -> bool
This method tests for !=
.
sourceimpl Serialize for SoundSource
impl Serialize for SoundSource
impl StructuralPartialEq for SoundSource
Auto Trait Implementations
impl RefUnwindSafe for SoundSource
impl Send for SoundSource
impl Sync for SoundSource
impl Unpin for SoundSource
impl UnwindSafe for SoundSource
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.
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