Struct cea708_types::tables::WindowBits
source · pub struct WindowBits(/* private fields */);Expand description
A collection of 8 Windows (0-7) represented as a bitfield
Implementations§
source§impl WindowBits
impl WindowBits
pub const NONE: WindowBits = _
pub const ZERO: WindowBits = _
pub const ONE: WindowBits = _
pub const TWO: WindowBits = _
pub const THREE: WindowBits = _
pub const FOUR: WindowBits = _
pub const FIVE: WindowBits = _
pub const SIX: WindowBits = _
pub const SEVEN: WindowBits = _
pub const fn or(self, rhs: Self) -> Self
pub const fn and(self, rhs: Self) -> Self
pub const fn not(self) -> Self
sourcepub const fn from_window_id(window_id: u8) -> Self
pub const fn from_window_id(window_id: u8) -> Self
Create a WindowBits from a window identifier.
Panics if window_id >= 8
Trait Implementations§
source§impl BitAnd for WindowBits
impl BitAnd for WindowBits
source§impl BitOr for WindowBits
impl BitOr for WindowBits
source§impl Clone for WindowBits
impl Clone for WindowBits
source§fn clone(&self) -> WindowBits
fn clone(&self) -> WindowBits
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 WindowBits
impl Debug for WindowBits
source§impl Default for WindowBits
impl Default for WindowBits
source§fn default() -> WindowBits
fn default() -> WindowBits
Returns the “default value” for a type. Read more
source§impl From<WindowBits> for [u8; 1]
impl From<WindowBits> for [u8; 1]
source§fn from(bits: WindowBits) -> Self
fn from(bits: WindowBits) -> Self
Converts to this type from the input type.
source§impl From<WindowBits> for u8
impl From<WindowBits> for u8
source§fn from(bits: WindowBits) -> Self
fn from(bits: WindowBits) -> Self
Converts to this type from the input type.
source§impl From<u8> for WindowBits
impl From<u8> for WindowBits
source§impl Not for WindowBits
impl Not for WindowBits
source§impl Ord for WindowBits
impl Ord for WindowBits
source§fn cmp(&self, other: &WindowBits) -> Ordering
fn cmp(&self, other: &WindowBits) -> 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 WindowBits
impl PartialEq for WindowBits
source§fn eq(&self, other: &WindowBits) -> bool
fn eq(&self, other: &WindowBits) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for WindowBits
impl PartialOrd for WindowBits
source§fn partial_cmp(&self, other: &WindowBits) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowBits) -> 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 WindowBits
impl Eq for WindowBits
impl StructuralPartialEq for WindowBits
Auto Trait Implementations§
impl Freeze for WindowBits
impl RefUnwindSafe for WindowBits
impl Send for WindowBits
impl Sync for WindowBits
impl Unpin for WindowBits
impl UnwindSafe for WindowBits
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