pub struct UnknownPortHandle { /* private fields */ }Implementations§
Source§impl UnknownPortHandle
impl UnknownPortHandle
Sourcepub fn as_input<SampleType>(self) -> Option<InputPortHandle<SampleType>>
pub fn as_input<SampleType>(self) -> Option<InputPortHandle<SampleType>>
Attempts to coerce the port into an input port This function will test the port’s flags to ensure that it is actually an input port
Sourcepub fn as_output<SampleType>(self) -> Option<OutputPortHandle<SampleType>>
pub fn as_output<SampleType>(self) -> Option<OutputPortHandle<SampleType>>
Attempts to coerce the port into an output port This function will test the port’s flags to ensure that it is actually an output port
Sourcepub unsafe fn force_as_input<SampleType>(self) -> InputPortHandle<SampleType>
pub unsafe fn force_as_input<SampleType>(self) -> InputPortHandle<SampleType>
Forces coercion to an input port This is marked unsafe because it DOES NOT check the port flags before coercing it to the new type. If you are 100% sure your port is an input port, this call can save you some extra operations. If not, use the safe version!
Sourcepub unsafe fn force_as_output<SampleType>(self) -> OutputPortHandle<SampleType>
pub unsafe fn force_as_output<SampleType>(self) -> OutputPortHandle<SampleType>
Forces coercion to an output port This is marked unsafe because it DOES NOT check the port flags before coercing it to the new type. If you are 100% sure your port is an output port, this call can save you some extra operations. If not, use the safe version!
Trait Implementations§
Source§impl Clone for UnknownPortHandle
impl Clone for UnknownPortHandle
Source§fn clone(&self) -> UnknownPortHandle
fn clone(&self) -> UnknownPortHandle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more