Type Alias UFrame

Source
pub type UFrame = Frame<dyn AnyUFrameMeta>;
Expand description

A smart pointer to an untyped frame with any metadata.

The metadata of the frame is not known at compile time but the frame must be an untyped one. An UFrame as a parameter accepts any type of untyped frame metadata.

The usage of this frame will not be changed while this object is alive.

Aliased Type§

struct UFrame { /* private fields */ }

Trait Implementations§

Source§

impl<M: AnyUFrameMeta> From<Frame<M>> for UFrame

Source§

fn from(frame: Frame<M>) -> Self

Converts to this type from the input type.
Source§

impl TryFrom<Frame<dyn AnyFrameMeta>> for UFrame

Source§

fn try_from(dyn_frame: Frame<dyn AnyFrameMeta>) -> Result<Self, Self::Error>

Tries converting a Frame<dyn AnyFrameMeta> into UFrame.

If the usage of the frame is not the same as the expected usage, it will return the dynamic frame itself as is.

Source§

type Error = Frame<dyn AnyFrameMeta>

The type returned in the event of a conversion error.