[][src]Struct lv2_atom::UnidentifiedAtom

pub struct UnidentifiedAtom<'a> { /* fields omitted */ }

An atom of yet unknown type.

This is used by reading handles that have to return a reference to an atom, but can not check it's type. This struct contains a Space containing the header and the body of the atom and can identify/read the atom from it.

Implementations

impl<'a> UnidentifiedAtom<'a>[src]

pub fn new(space: Space<'a>) -> Self[src]

Construct a new unidentified atom.

The space actually has to contain an atom. If it doesn't, crazy (but not undefined) things can happen.

pub fn read<'b, A: Atom<'a, 'b>>(
    self,
    urid: URID<A>,
    parameter: A::ReadParameter
) -> Option<A::ReadHandle>
[src]

Try to read the atom.

To identify the atom, it's URID and an atom-specific parameter is needed. If the atom was identified, a reading handle is returned.

pub fn type_urid(self) -> Option<URID>[src]

Retrieve the type URID of the atom.

This can be used to identify atoms without actually reading them.

Trait Implementations

impl<'a> Clone for UnidentifiedAtom<'a>[src]

impl<'a> Copy for UnidentifiedAtom<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for UnidentifiedAtom<'a>

impl<'a> Send for UnidentifiedAtom<'a>

impl<'a> Sync for UnidentifiedAtom<'a>

impl<'a> Unpin for UnidentifiedAtom<'a>

impl<'a> UnwindSafe for UnidentifiedAtom<'a>

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<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.