#[non_exhaustive]pub enum PlpCodeRate {
R1_2,
R3_5,
R2_3,
R3_4,
R4_5,
R5_6,
Reserved(u8),
}Expand description
PLP code rate (T2-base profile column) — EN 302 755 §7.2.3.1 Table 32 (3-bit field).
The T2-Lite column differs (see Table 32); this enum decodes the T2-base column only.
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.
R1_2
000 — 1/2.
R3_5
001 — 3/5.
R2_3
010 — 2/3.
R3_4
011 — 3/4.
R4_5
100 — 4/5.
R5_6
101 — 5/6.
Reserved(u8)
All other values — reserved (T2-base; T2-Lite uses 110/111 differently).
Implementations§
Source§impl PlpCodeRate
impl PlpCodeRate
Trait Implementations§
Source§impl Clone for PlpCodeRate
impl Clone for PlpCodeRate
Source§fn clone(&self) -> PlpCodeRate
fn clone(&self) -> PlpCodeRate
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 PlpCodeRate
Source§impl Debug for PlpCodeRate
impl Debug for PlpCodeRate
Source§impl Display for PlpCodeRate
impl Display for PlpCodeRate
impl Eq for PlpCodeRate
Source§impl PartialEq for PlpCodeRate
impl PartialEq for PlpCodeRate
Source§impl Serialize for PlpCodeRate
Available on crate feature serde only.
impl Serialize for PlpCodeRate
Available on crate feature
serde only.impl StructuralPartialEq for PlpCodeRate
Auto Trait Implementations§
impl Freeze for PlpCodeRate
impl RefUnwindSafe for PlpCodeRate
impl Send for PlpCodeRate
impl Sync for PlpCodeRate
impl Unpin for PlpCodeRate
impl UnsafeUnpin for PlpCodeRate
impl UnwindSafe for PlpCodeRate
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