Struct cea608_types::tables::ControlCode
source · pub struct ControlCode {
pub channel: Channel,
pub control: Control,
}Expand description
A control code
Fields§
§channel: ChannelThe channel
control: ControlThe control code
Implementations§
source§impl ControlCode
impl ControlCode
sourcepub fn new(channel: Channel, control: Control) -> Self
pub fn new(channel: Channel, control: Control) -> Self
Construct a new ControlCode
sourcepub fn channel(&self) -> Channel
pub fn channel(&self) -> Channel
The Channel for this ControlCode
sourcepub fn code(&self) -> Control
pub fn code(&self) -> Control
The Control code for this ControlCode
Trait Implementations§
source§impl Clone for ControlCode
impl Clone for ControlCode
source§fn clone(&self) -> ControlCode
fn clone(&self) -> ControlCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ControlCode
impl Debug for ControlCode
source§impl Ord for ControlCode
impl Ord for ControlCode
source§fn cmp(&self, other: &ControlCode) -> Ordering
fn cmp(&self, other: &ControlCode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ControlCode
impl PartialEq for ControlCode
source§fn eq(&self, other: &ControlCode) -> bool
fn eq(&self, other: &ControlCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ControlCode
impl PartialOrd for ControlCode
source§fn partial_cmp(&self, other: &ControlCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ControlCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ControlCode
impl Eq for ControlCode
impl StructuralPartialEq for ControlCode
Auto Trait Implementations§
impl Freeze for ControlCode
impl RefUnwindSafe for ControlCode
impl Send for ControlCode
impl Sync for ControlCode
impl Unpin for ControlCode
impl UnwindSafe for ControlCode
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