pub struct SegmentTypeIdentifier {
pub segment_type: SegmentType,
pub identifier: SegmentIdentifier,
}
Expand description
Lumps possible types with segment ids to enable a unique identifier for a segment with respect to a particular archive header
Fields§
§segment_type: SegmentType
The type of this segment
identifier: SegmentIdentifier
The identfier itself
Implementations§
source§impl SegmentTypeIdentifier
impl SegmentTypeIdentifier
sourcepub fn new(segment_type: SegmentType, identifier: SegmentIdentifier) -> Self
pub fn new(segment_type: SegmentType, identifier: SegmentIdentifier) -> Self
Create
Trait Implementations§
source§impl Clone for SegmentTypeIdentifier
impl Clone for SegmentTypeIdentifier
source§fn clone(&self) -> SegmentTypeIdentifier
fn clone(&self) -> SegmentTypeIdentifier
Returns a copy 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 SegmentTypeIdentifier
impl Debug for SegmentTypeIdentifier
source§impl PartialEq for SegmentTypeIdentifier
impl PartialEq for SegmentTypeIdentifier
source§fn eq(&self, other: &SegmentTypeIdentifier) -> bool
fn eq(&self, other: &SegmentTypeIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SegmentTypeIdentifier
impl StructuralPartialEq for SegmentTypeIdentifier
Auto Trait Implementations§
impl Freeze for SegmentTypeIdentifier
impl RefUnwindSafe for SegmentTypeIdentifier
impl Send for SegmentTypeIdentifier
impl Sync for SegmentTypeIdentifier
impl Unpin for SegmentTypeIdentifier
impl UnwindSafe for SegmentTypeIdentifier
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.