Struct MusicLayer
pub struct MusicLayer {
pub sound: String,
pub volume: f32,
}Expand description
A track a native mod plays over or instead of the music
(native_music_layers): a sound event and its volume, 0 to 1.
Fields§
§sound: String§volume: f32Trait Implementations§
§impl Clone for MusicLayer
impl Clone for MusicLayer
§fn clone(&self) -> MusicLayer
fn clone(&self) -> MusicLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for MusicLayer
impl Debug for MusicLayer
§impl PartialEq for MusicLayer
impl PartialEq for MusicLayer
impl StructuralPartialEq for MusicLayer
Auto Trait Implementations§
impl Freeze for MusicLayer
impl RefUnwindSafe for MusicLayer
impl Send for MusicLayer
impl Sync for MusicLayer
impl Unpin for MusicLayer
impl UnsafeUnpin for MusicLayer
impl UnwindSafe for MusicLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more