pub struct Handle(_);
Implementations
sourceimpl Handle
impl Handle
pub fn new(h: syz_Handle) -> Handle
pub fn handle(&self) -> &Handle
pub fn into_handle(self) -> Handle
sourcepub fn get_type(&self) -> Result<ObjectType>
pub fn get_type(&self) -> Result<ObjectType>
Get the object’s type if possible. THis function will fail if Synthizer is not initialized.
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.
sourcepub fn get_userdata(&self) -> Result<Option<Arc<dyn Any + Send + Sync>>>
pub fn get_userdata(&self) -> Result<Option<Arc<dyn Any + Send + Sync>>>
Get this handle’s userdata.
sourcepub fn set_userdata(
&self,
userdata: Option<impl Any + Send + Sync>
) -> Result<()>
pub fn set_userdata(
&self,
userdata: Option<impl Any + Send + Sync>
) -> Result<()>
Set the userdata for this handle.
pub fn config_delete_behavior(
&self,
config: &DeleteBehaviorConfig
) -> Result<()>
Trait Implementations
sourceimpl From<&'_ AngularPannedSource> for Handle
impl From<&'_ AngularPannedSource> for Handle
sourcefn from(other: &AngularPannedSource) -> Handle
fn from(other: &AngularPannedSource) -> Handle
Performs the conversion.
sourceimpl From<&'_ BufferGenerator> for Handle
impl From<&'_ BufferGenerator> for Handle
sourcefn from(other: &BufferGenerator) -> Handle
fn from(other: &BufferGenerator) -> Handle
Performs the conversion.
sourceimpl From<&'_ DirectSource> for Handle
impl From<&'_ DirectSource> for Handle
sourcefn from(other: &DirectSource) -> Handle
fn from(other: &DirectSource) -> Handle
Performs the conversion.
sourceimpl From<&'_ NoiseGenerator> for Handle
impl From<&'_ NoiseGenerator> for Handle
sourcefn from(other: &NoiseGenerator) -> Handle
fn from(other: &NoiseGenerator) -> Handle
Performs the conversion.
sourceimpl From<&'_ ScalarPannedSource> for Handle
impl From<&'_ ScalarPannedSource> for Handle
sourcefn from(other: &ScalarPannedSource) -> Handle
fn from(other: &ScalarPannedSource) -> Handle
Performs the conversion.
sourceimpl From<&'_ StreamingGenerator> for Handle
impl From<&'_ StreamingGenerator> for Handle
sourcefn from(other: &StreamingGenerator) -> Handle
fn from(other: &StreamingGenerator) -> Handle
Performs the conversion.
sourceimpl From<AngularPannedSource> for Handle
impl From<AngularPannedSource> for Handle
sourcefn from(input: AngularPannedSource) -> Handle
fn from(input: AngularPannedSource) -> Handle
Performs the conversion.
sourceimpl From<BufferGenerator> for Handle
impl From<BufferGenerator> for Handle
sourcefn from(input: BufferGenerator) -> Handle
fn from(input: BufferGenerator) -> Handle
Performs the conversion.
sourceimpl From<DirectSource> for Handle
impl From<DirectSource> for Handle
sourcefn from(input: DirectSource) -> Handle
fn from(input: DirectSource) -> Handle
Performs the conversion.
sourceimpl From<NoiseGenerator> for Handle
impl From<NoiseGenerator> for Handle
sourcefn from(input: NoiseGenerator) -> Handle
fn from(input: NoiseGenerator) -> Handle
Performs the conversion.
sourceimpl From<ScalarPannedSource> for Handle
impl From<ScalarPannedSource> for Handle
sourcefn from(input: ScalarPannedSource) -> Handle
fn from(input: ScalarPannedSource) -> Handle
Performs the conversion.
sourceimpl From<StreamingGenerator> for Handle
impl From<StreamingGenerator> for Handle
sourcefn from(input: StreamingGenerator) -> Handle
fn from(input: StreamingGenerator) -> Handle
Performs the conversion.
sourceimpl Ord for Handle
impl Ord for Handle
sourceimpl PartialOrd<Handle> for Handle
impl PartialOrd<Handle> for Handle
sourcefn partial_cmp(&self, other: &Handle) -> Option<Ordering>
fn partial_cmp(&self, other: &Handle) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl TryFrom<&'_ Handle> for BufferGenerator
impl TryFrom<&'_ Handle> for BufferGenerator
sourceimpl TryFrom<&'_ Handle> for NoiseGenerator
impl TryFrom<&'_ Handle> for NoiseGenerator
sourceimpl TryFrom<&'_ Handle> for StreamingGenerator
impl TryFrom<&'_ Handle> for StreamingGenerator
sourceimpl TryFrom<&'_ Handle> for FastSineBankGenerator
impl TryFrom<&'_ Handle> for FastSineBankGenerator
sourceimpl TryFrom<&'_ Handle> for DirectSource
impl TryFrom<&'_ Handle> for DirectSource
sourceimpl TryFrom<&'_ Handle> for AngularPannedSource
impl TryFrom<&'_ Handle> for AngularPannedSource
sourceimpl TryFrom<&'_ Handle> for ScalarPannedSource
impl TryFrom<&'_ Handle> for ScalarPannedSource
impl Eq for Handle
impl StructuralEq for Handle
impl StructuralPartialEq for Handle
Auto Trait Implementations
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more