#[non_exhaustive]pub enum AnchorPoint {
TopLeft,
TopCenter,
TopRight,
MiddleLeft,
MiddleCenter,
MiddleRight,
BottomLeft,
BottomCenter,
BottomRight,
}Available on crate feature
decode only.Expand description
Anchor point of a CEA-708 window — which corner / edge / centre the anchor
coordinates refer to (CTA-708-E §8.4.6, 4-bit ap field, values 0–8).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TopLeft
Top-left corner (ap = 0).
TopCenter
Top centre (ap = 1).
TopRight
Top-right corner (ap = 2).
MiddleLeft
Middle-left edge (ap = 3).
MiddleCenter
Middle centre (ap = 4).
MiddleRight
Middle-right edge (ap = 5).
BottomLeft
Bottom-left corner (ap = 6).
BottomCenter
Bottom centre (ap = 7).
BottomRight
Bottom-right corner (ap = 8).
Implementations§
Trait Implementations§
Source§impl Clone for AnchorPoint
impl Clone for AnchorPoint
Source§fn clone(&self) -> AnchorPoint
fn clone(&self) -> AnchorPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnchorPoint
Source§impl Debug for AnchorPoint
impl Debug for AnchorPoint
Source§impl Default for AnchorPoint
impl Default for AnchorPoint
Source§fn default() -> AnchorPoint
fn default() -> AnchorPoint
Returns the “default value” for a type. Read more
Source§impl Display for AnchorPoint
impl Display for AnchorPoint
impl Eq for AnchorPoint
Source§impl PartialEq for AnchorPoint
impl PartialEq for AnchorPoint
Source§fn eq(&self, other: &AnchorPoint) -> bool
fn eq(&self, other: &AnchorPoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnchorPoint
impl Serialize for AnchorPoint
impl StructuralPartialEq for AnchorPoint
Auto Trait Implementations§
impl Freeze for AnchorPoint
impl RefUnwindSafe for AnchorPoint
impl Send for AnchorPoint
impl Sync for AnchorPoint
impl Unpin for AnchorPoint
impl UnsafeUnpin for AnchorPoint
impl UnwindSafe for AnchorPoint
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