pub struct PiecewiseRate(/* private fields */);Expand description
A 22-bit piecewise_rate (ISO/IEC 13818-1 §2.4.3.5), the bit rate of the
stream between two characters with a legal time window.
Construction checks the wire width, so a value that does not fit cannot reach the serializer and become a different valid rate.
Implementations§
Trait Implementations§
Source§impl Clone for PiecewiseRate
impl Clone for PiecewiseRate
impl Copy for PiecewiseRate
Source§impl Debug for PiecewiseRate
impl Debug for PiecewiseRate
Source§impl Display for PiecewiseRate
impl Display for PiecewiseRate
impl Eq for PiecewiseRate
Source§impl From<PiecewiseRate> for u32
impl From<PiecewiseRate> for u32
Source§fn from(value: PiecewiseRate) -> Self
fn from(value: PiecewiseRate) -> Self
Converts to this type from the input type.
Source§impl Hash for PiecewiseRate
impl Hash for PiecewiseRate
Source§impl Ord for PiecewiseRate
impl Ord for PiecewiseRate
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PiecewiseRate
impl PartialEq for PiecewiseRate
Source§impl PartialOrd for PiecewiseRate
impl PartialOrd for PiecewiseRate
Source§impl Serialize for PiecewiseRate
Available on crate feature serde only.
impl Serialize for PiecewiseRate
Available on crate feature
serde only.impl StructuralPartialEq for PiecewiseRate
Auto Trait Implementations§
impl Forget for PiecewiseRate
impl Freeze for PiecewiseRate
impl Move for PiecewiseRate
impl RefUnwindSafe for PiecewiseRate
impl Send for PiecewiseRate
impl Sync for PiecewiseRate
impl Unpin for PiecewiseRate
impl UnsafeUnpin for PiecewiseRate
impl UnwindSafe for PiecewiseRate
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