pub struct Multisample<'a> { /* private fields */ }
Expand description
A multi-sample mapping for an instrument
Implementations§
Source§impl<'a> Multisample<'a>
impl<'a> Multisample<'a>
Sourcepub fn to_owned(self) -> Multisample<'static>
pub fn to_owned(self) -> Multisample<'static>
Clones any borrowed data and returns a copy with a 'static
lifetime
Sourcepub fn with_name(self, name: impl Into<Cow<'a, str>>) -> Self
pub fn with_name(self, name: impl Into<Cow<'a, str>>) -> Self
Set the name of the multi-sampled instrument
Sourcepub fn with_generator(self, generator: impl Into<Cow<'a, str>>) -> Self
pub fn with_generator(self, generator: impl Into<Cow<'a, str>>) -> Self
Set the name of the software tool generating the mapping
Sourcepub fn with_category(self, category: impl Into<Cow<'a, str>>) -> Self
pub fn with_category(self, category: impl Into<Cow<'a, str>>) -> Self
Set the general kind of instrument this is
Sourcepub fn with_creator(self, creator: impl Into<Cow<'a, str>>) -> Self
pub fn with_creator(self, creator: impl Into<Cow<'a, str>>) -> Self
Set the user who is creating the mapping
Sourcepub fn with_description(self, description: impl Into<Cow<'a, str>>) -> Self
pub fn with_description(self, description: impl Into<Cow<'a, str>>) -> Self
Provide a longer-form text description of the instrument
Sourcepub fn with_keywords<S: Into<Cow<'a, str>>>(
self,
keywords: impl IntoIterator<Item = S>,
) -> Self
pub fn with_keywords<S: Into<Cow<'a, str>>>( self, keywords: impl IntoIterator<Item = S>, ) -> Self
Set the keywords associated with this instrument
Sourcepub fn with_groups(self, groups: impl IntoIterator<Item = Group<'a>>) -> Self
pub fn with_groups(self, groups: impl IntoIterator<Item = Group<'a>>) -> Self
Set the list of sample groups
Sourcepub fn with_samples(self, samples: impl IntoIterator<Item = Sample<'a>>) -> Self
pub fn with_samples(self, samples: impl IntoIterator<Item = Sample<'a>>) -> Self
Set the list of sample mappings
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Longer-form text description of the instrument
Trait Implementations§
Source§impl<'a> Debug for Multisample<'a>
impl<'a> Debug for Multisample<'a>
Source§impl<'a> Default for Multisample<'a>
impl<'a> Default for Multisample<'a>
Source§fn default() -> Multisample<'a>
fn default() -> Multisample<'a>
Returns the “default value” for a type. Read more
Source§impl<'de: 'a, 'a> Deserialize<'de> for Multisample<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Multisample<'a>
Source§fn 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
Auto Trait Implementations§
impl<'a> Freeze for Multisample<'a>
impl<'a> RefUnwindSafe for Multisample<'a>
impl<'a> Send for Multisample<'a>
impl<'a> Sync for Multisample<'a>
impl<'a> Unpin for Multisample<'a>
impl<'a> UnwindSafe for Multisample<'a>
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