[][src]Struct lv2_urid::HostMap

pub struct HostMap<M: Map + Unmap + Unpin> { /* fields omitted */ }

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]

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]

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

impl<M: Map + Unmap + Unpin> From<M> for HostMap<M>[src]

Auto Trait Implementations

impl<M> RefUnwindSafe for HostMap<M> where
    M: RefUnwindSafe

impl<M> Send for HostMap<M> where
    M: Send

impl<M> Sync for HostMap<M> where
    M: Sync

impl<M> Unpin for HostMap<M>

impl<M> UnwindSafe for HostMap<M> where
    M: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.