pub struct SdpDecimal(/* private fields */);Expand description
A decimal number of any length, 1*DIGIT: the <sess-id> and <sess-version> of an
o= line (RFC 8866 section 9). The grammar sets no upper bound, so a compliant
description may carry values beyond 64 bits (RFC 9429 section 5.2.1 has a JSEP endpoint
generate them within 64 bits, and section 5.8 has it accept compliant SDP that does not
follow its generation rules).
It keeps the digits as written, leading zeros included, so a description is written back as it was read; equality and order are those of the numbers.
Implementations§
Source§impl SdpDecimal
impl SdpDecimal
Sourcepub fn incremented(&self) -> Self
pub fn incremented(&self) -> Self
The number plus one (RFC 3264 section 8: the version “MUST increment by one”), with no upper bound.
Trait Implementations§
Source§impl Clone for SdpDecimal
impl Clone for SdpDecimal
Source§impl Debug for SdpDecimal
impl Debug for SdpDecimal
Source§impl Default for SdpDecimal
impl Default for SdpDecimal
Source§impl Display for SdpDecimal
impl Display for SdpDecimal
impl Eq for SdpDecimal
Source§impl From<u64> for SdpDecimal
impl From<u64> for SdpDecimal
Source§impl FromStr for SdpDecimal
impl FromStr for SdpDecimal
Source§impl Hash for SdpDecimal
impl Hash for SdpDecimal
Source§impl Ord for SdpDecimal
impl Ord for SdpDecimal
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 SdpDecimal
impl PartialEq for SdpDecimal
Source§impl PartialEq<u64> for SdpDecimal
impl PartialEq<u64> for SdpDecimal
Auto Trait Implementations§
impl Forget for SdpDecimal
impl Freeze for SdpDecimal
impl Move for SdpDecimal
impl RefUnwindSafe for SdpDecimal
impl Send for SdpDecimal
impl Sync for SdpDecimal
impl Unpin for SdpDecimal
impl UnsafeUnpin for SdpDecimal
impl UnwindSafe for SdpDecimal
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