[−][src]Struct lv2::prelude::UnidentifiedAtom
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>) -> UnidentifiedAtom<'a>
[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>(
self,
urid: URID<A>,
parameter: <A as Atom<'a, 'b>>::ReadParameter
) -> Option<<A as Atom<'a, 'b>>::ReadHandle> where
A: Atom<'a, 'b>,
[src]
self,
urid: URID<A>,
parameter: <A as Atom<'a, 'b>>::ReadParameter
) -> Option<<A as Atom<'a, 'b>>::ReadHandle> where
A: Atom<'a, 'b>,
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]
pub fn clone(&self) -> UnidentifiedAtom<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,