[−][src]Struct lv2_urid::HostMap
A wrapper for a URID (un)mapper that exposes it as an LV2 host feature.
Implementations
impl<M: Map + Unmap + Unpin> HostMap<M>
[src]
pub unsafe extern "C" fn extern_map(
handle: LV2_URID_Map_Handle,
uri: *const c_char
) -> LV2_URID
[src]
handle: LV2_URID_Map_Handle,
uri: *const c_char
) -> LV2_URID
Unsafe wrapper of the map
method, used by the feature interface.
If the map
method returns None
, this method will return 0
.
Safety
This method is unsafe since it has to dereference a raw pointer and since it's part of the C interface.
pub fn make_map_interface(self: Pin<&mut Self>) -> LV2_URID_Map
[src]
Create a raw map interface.
pub unsafe extern "C" fn extern_unmap(
handle: LV2_URID_Map_Handle,
urid: LV2_URID
) -> *const c_char
[src]
handle: LV2_URID_Map_Handle,
urid: LV2_URID
) -> *const c_char
Unsafe wrapper of the unmap
method, used by the feature interface.
If the given URID is invalid or unmap
returns None
, this method returns a null pointer.
Safety
The method is unsafe since it has to dereference raw pointers and it is part of the C interface.
pub fn make_unmap_interface(self: Pin<&mut Self>) -> LV2_URID_Unmap
[src]
Create an unmap interface.
This method clones the mapper and creates a self-contained UnmapInterface
.
Trait Implementations
Auto Trait Implementations
impl<M> RefUnwindSafe for HostMap<M> where
M: RefUnwindSafe,
M: RefUnwindSafe,
impl<M> Send for HostMap<M> where
M: Send,
M: Send,
impl<M> Sync for HostMap<M> where
M: Sync,
M: Sync,
impl<M> Unpin for HostMap<M>
impl<M> UnwindSafe for HostMap<M> where
M: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,