pub struct NoiseGenerator(/* private fields */);Implementations§
Source§impl NoiseGenerator
impl NoiseGenerator
pub fn new(context: &Context, channels: u32) -> Result<NoiseGenerator>
pub fn pitch_bend(&self) -> DoubleProperty<'_>
pub fn gain(&self) -> DoubleProperty<'_>
pub fn noise_type(&self) -> EnumProperty<'_, NoiseType>
pub fn handle(&self) -> &Handle
pub fn into_handle(self) -> Handle
pub fn get_type(&self) -> Result<ObjectType>
Sourcepub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
pub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
Try to cast this object to another object type. Will return
Ok(None) if this is because of a type mismatch, otherwise Err.
Clones self on success in order to prevent throwing the object
away on error.
pub fn get_userdata(&self) -> Result<Option<Arc<dyn Any + Send + Sync>>>
pub fn set_userdata( &self, userdata: Option<impl Any + Send + Sync>, ) -> Result<()>
pub fn config_delete_behavior( &self, config: &DeleteBehaviorConfig, ) -> Result<()>
pub fn current_time(&self) -> DoubleProperty<'_>
pub fn suggested_automation_time(&self) -> DoubleProperty<'_>
pub fn pause(&self) -> Result<()>
pub fn play(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for NoiseGenerator
impl Clone for NoiseGenerator
Source§fn clone(&self) -> NoiseGenerator
fn clone(&self) -> NoiseGenerator
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 NoiseGenerator
impl Debug for NoiseGenerator
Source§impl From<&NoiseGenerator> for Generator
impl From<&NoiseGenerator> for Generator
Source§fn from(other: &NoiseGenerator) -> Generator
fn from(other: &NoiseGenerator) -> Generator
Converts to this type from the input type.
Source§impl From<&NoiseGenerator> for Handle
impl From<&NoiseGenerator> for Handle
Source§fn from(other: &NoiseGenerator) -> Handle
fn from(other: &NoiseGenerator) -> Handle
Converts to this type from the input type.
Source§impl From<NoiseGenerator> for Generator
impl From<NoiseGenerator> for Generator
Source§fn from(input: NoiseGenerator) -> Generator
fn from(input: NoiseGenerator) -> Generator
Converts to this type from the input type.
Source§impl From<NoiseGenerator> for Handle
impl From<NoiseGenerator> for Handle
Source§fn from(input: NoiseGenerator) -> Handle
fn from(input: NoiseGenerator) -> Handle
Converts to this type from the input type.
Source§impl Hash for NoiseGenerator
impl Hash for NoiseGenerator
Source§impl Ord for NoiseGenerator
impl Ord for NoiseGenerator
Source§fn cmp(&self, other: &NoiseGenerator) -> Ordering
fn cmp(&self, other: &NoiseGenerator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NoiseGenerator
impl PartialEq for NoiseGenerator
Source§impl PartialOrd for NoiseGenerator
impl PartialOrd for NoiseGenerator
Source§impl TryFrom<&Generator> for NoiseGenerator
impl TryFrom<&Generator> for NoiseGenerator
Source§impl TryFrom<&Handle> for NoiseGenerator
impl TryFrom<&Handle> for NoiseGenerator
Source§impl TryFrom<Generator> for NoiseGenerator
impl TryFrom<Generator> for NoiseGenerator
Source§impl TryFrom<Handle> for NoiseGenerator
impl TryFrom<Handle> for NoiseGenerator
impl Eq for NoiseGenerator
impl StructuralPartialEq for NoiseGenerator
Auto Trait Implementations§
impl Freeze for NoiseGenerator
impl RefUnwindSafe for NoiseGenerator
impl Send for NoiseGenerator
impl Sync for NoiseGenerator
impl Unpin for NoiseGenerator
impl UnwindSafe for NoiseGenerator
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