pub struct ChannelDefinition {
pub kind: ChannelType,
pub association: Association,
}Expand description
What one output channel is: its type and the color it belongs to.
It mirrors a cdef entry’s Typ and Asoc, and both enums already hold
every 16-bit value, so the struct and its enums are not
#[non_exhaustive]: a caller may build one, and match on both enums
without a catch-all arm.
Fields§
§kind: ChannelTypeThe channel’s type.
association: AssociationWhich color, if any, the channel is associated with.
Trait Implementations§
Source§impl Clone for ChannelDefinition
impl Clone for ChannelDefinition
impl Copy for ChannelDefinition
Source§impl Debug for ChannelDefinition
impl Debug for ChannelDefinition
impl Eq for ChannelDefinition
Source§impl PartialEq for ChannelDefinition
impl PartialEq for ChannelDefinition
impl StructuralPartialEq for ChannelDefinition
Auto Trait Implementations§
impl Forget for ChannelDefinition
impl Freeze for ChannelDefinition
impl Move for ChannelDefinition
impl RefUnwindSafe for ChannelDefinition
impl Send for ChannelDefinition
impl Sync for ChannelDefinition
impl Unpin for ChannelDefinition
impl UnsafeUnpin for ChannelDefinition
impl UnwindSafe for ChannelDefinition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more