Trait FrameVariant

Source
pub trait FrameVariant: Into<Frame> {
    const FLAGS_MASK: FrameFlags;
    const REQUIRED_FLAGS: FrameFlags = _;

    // Required method
    fn flags(&self) -> FrameFlags;
}
Expand description

A trait to be implemented by all frame variants.

Required Associated Constants§

Source

const FLAGS_MASK: FrameFlags

Mask that flags of a variant must be in.

Provided Associated Constants§

Source

const REQUIRED_FLAGS: FrameFlags = _

Flags that must be set for a variant.

Required Methods§

Source

fn flags(&self) -> FrameFlags

Gets the flags of the variant.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§