pub struct DecimalIntegerRange {
pub length: u64,
pub offset: Option<u64>,
}Expand description
Represents the decimal-integer-range that is found in several places, from tag values to
attribute values, and has structure <n>[@<o>].
For example:
assert_eq!(
DecimalIntegerRange {
length: 1024,
offset: Some(512)
},
DecimalIntegerRange::try_from("1024@512")?
);Fields§
§length: u64Corresponds to the length component in the value (n in <n>@<o>).
offset: Option<u64>Corresponds to the offset component in the value (o in <n>@<o>).
Trait Implementations§
Source§impl Clone for DecimalIntegerRange
impl Clone for DecimalIntegerRange
Source§fn clone(&self) -> DecimalIntegerRange
fn clone(&self) -> DecimalIntegerRange
Returns a duplicate 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 DecimalIntegerRange
impl Debug for DecimalIntegerRange
Source§impl Display for DecimalIntegerRange
impl Display for DecimalIntegerRange
Source§impl PartialEq for DecimalIntegerRange
impl PartialEq for DecimalIntegerRange
Source§impl TryFrom<&[u8]> for DecimalIntegerRange
impl TryFrom<&[u8]> for DecimalIntegerRange
Source§impl TryFrom<&str> for DecimalIntegerRange
impl TryFrom<&str> for DecimalIntegerRange
impl Copy for DecimalIntegerRange
impl StructuralPartialEq for DecimalIntegerRange
Auto Trait Implementations§
impl Freeze for DecimalIntegerRange
impl RefUnwindSafe for DecimalIntegerRange
impl Send for DecimalIntegerRange
impl Sync for DecimalIntegerRange
impl Unpin for DecimalIntegerRange
impl UnsafeUnpin for DecimalIntegerRange
impl UnwindSafe for DecimalIntegerRange
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