pub struct IpFragRange {
pub start: u16,
pub end: u16,
}Available on crate feature
std only.Expand description
Describing the range of reconstructed data.
Fields§
§start: u16Offset of section
end: u16Offset + length of section
Implementations§
Source§impl IpFragRange
impl IpFragRange
Sourcepub fn merge(&self, other: IpFragRange) -> Option<IpFragRange>
pub fn merge(&self, other: IpFragRange) -> Option<IpFragRange>
Combine both sections if possible.
Trait Implementations§
Source§impl Clone for IpFragRange
impl Clone for IpFragRange
Source§fn clone(&self) -> IpFragRange
fn clone(&self) -> IpFragRange
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 IpFragRange
impl Debug for IpFragRange
Source§impl Hash for IpFragRange
impl Hash for IpFragRange
Source§impl Ord for IpFragRange
impl Ord for IpFragRange
Source§fn cmp(&self, other: &IpFragRange) -> Ordering
fn cmp(&self, other: &IpFragRange) -> Ordering
1.21.0 · 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
Source§impl PartialEq for IpFragRange
impl PartialEq for IpFragRange
Source§impl PartialOrd for IpFragRange
impl PartialOrd for IpFragRange
impl Copy for IpFragRange
impl Eq for IpFragRange
impl StructuralPartialEq for IpFragRange
Auto Trait Implementations§
impl Freeze for IpFragRange
impl RefUnwindSafe for IpFragRange
impl Send for IpFragRange
impl Sync for IpFragRange
impl Unpin for IpFragRange
impl UnsafeUnpin for IpFragRange
impl UnwindSafe for IpFragRange
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