pub struct Instrument {
pub sound_event: IdOr<SoundEvent>,
pub use_duration: Float,
pub range: Float,
pub description: TextComponent,
}Fields§
§sound_event: IdOr<SoundEvent>§use_duration: Float§range: Float§description: TextComponentImplementations§
Source§impl Instrument
impl Instrument
pub fn new( sound_event: IdOr<SoundEvent>, use_duration: Float, range: Float, description: TextComponent, ) -> Self
Trait Implementations§
Source§impl Clone for Instrument
impl Clone for Instrument
Source§fn clone(&self) -> Instrument
fn clone(&self) -> Instrument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Instrument
impl Debug for Instrument
Source§impl Field for Instrument
impl Field for Instrument
Auto Trait Implementations§
impl Freeze for Instrument
impl RefUnwindSafe for Instrument
impl Send for Instrument
impl Sync for Instrument
impl Unpin for Instrument
impl UnwindSafe for Instrument
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