pub struct Handle(_);
Implementations§
source§impl 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§
source§impl From<&AngularPannedSource> for Handle
impl From<&AngularPannedSource> for Handle
source§fn from(other: &AngularPannedSource) -> Handle
fn from(other: &AngularPannedSource) -> Handle
Converts to this type from the input type.
source§impl From<&BufferGenerator> for Handle
impl From<&BufferGenerator> for Handle
source§fn from(other: &BufferGenerator) -> Handle
fn from(other: &BufferGenerator) -> Handle
Converts to this type from the input type.
source§impl From<&DirectSource> for Handle
impl From<&DirectSource> for Handle
source§fn from(other: &DirectSource) -> Handle
fn from(other: &DirectSource) -> Handle
Converts to this type from the input type.
source§impl From<&FastSineBankGenerator> for Handle
impl From<&FastSineBankGenerator> for Handle
source§fn from(other: &FastSineBankGenerator) -> Handle
fn from(other: &FastSineBankGenerator) -> Handle
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<&ScalarPannedSource> for Handle
impl From<&ScalarPannedSource> for Handle
source§fn from(other: &ScalarPannedSource) -> Handle
fn from(other: &ScalarPannedSource) -> Handle
Converts to this type from the input type.
source§impl From<&StreamingGenerator> for Handle
impl From<&StreamingGenerator> for Handle
source§fn from(other: &StreamingGenerator) -> Handle
fn from(other: &StreamingGenerator) -> Handle
Converts to this type from the input type.
source§impl From<AngularPannedSource> for Handle
impl From<AngularPannedSource> for Handle
source§fn from(input: AngularPannedSource) -> Handle
fn from(input: AngularPannedSource) -> Handle
Converts to this type from the input type.
source§impl From<BufferGenerator> for Handle
impl From<BufferGenerator> for Handle
source§fn from(input: BufferGenerator) -> Handle
fn from(input: BufferGenerator) -> Handle
Converts to this type from the input type.
source§impl From<DirectSource> for Handle
impl From<DirectSource> for Handle
source§fn from(input: DirectSource) -> Handle
fn from(input: DirectSource) -> Handle
Converts to this type from the input type.
source§impl From<FastSineBankGenerator> for Handle
impl From<FastSineBankGenerator> for Handle
source§fn from(input: FastSineBankGenerator) -> Handle
fn from(input: FastSineBankGenerator) -> Handle
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 From<ScalarPannedSource> for Handle
impl From<ScalarPannedSource> for Handle
source§fn from(input: ScalarPannedSource) -> Handle
fn from(input: ScalarPannedSource) -> Handle
Converts to this type from the input type.
source§impl From<StreamingGenerator> for Handle
impl From<StreamingGenerator> for Handle
source§fn from(input: StreamingGenerator) -> Handle
fn from(input: StreamingGenerator) -> Handle
Converts to this type from the input type.
source§impl Ord for Handle
impl Ord for Handle
source§impl PartialEq<Handle> for Handle
impl PartialEq<Handle> for Handle
source§impl PartialOrd<Handle> for Handle
impl PartialOrd<Handle> for Handle
1.0.0 · source§fn 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