[][src]Struct lv2::prelude::HostMap

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

A wrapper for a URID (un)mapper that exposes it as an LV2 host feature.

Implementations

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

pub unsafe extern "C" fn extern_map(handle: *mut c_void, uri: *const i8) -> u32[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 HostMap<M>>) -> LV2_URID_Map[src]

Create a raw map interface.

pub unsafe extern "C" fn extern_unmap(
    handle: *mut c_void,
    urid: u32
) -> *const i8
[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 HostMap<M>>) -> LV2_URID_Unmap[src]

Create an unmap interface.

This method clones the mapper and creates a self-contained UnmapInterface.

Trait Implementations

impl<M> From<M> for HostMap<M> where
    M: Unpin + Map + Unmap
[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.