Struct gimli::read::ReaderOffsetId
source · [−]pub struct ReaderOffsetId(pub u64);
Expand description
An identifier for an offset within a section reader.
This is used for error reporting. The meaning of this value is specific to each reader implementation. The values should be chosen to be unique amongst all readers. If values are not unique then errors may point to the wrong reader.
Tuple Fields
0: u64
Trait Implementations
sourceimpl Clone for ReaderOffsetId
impl Clone for ReaderOffsetId
sourcefn clone(&self) -> ReaderOffsetId
fn clone(&self) -> ReaderOffsetId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReaderOffsetId
impl Debug for ReaderOffsetId
sourceimpl PartialEq<ReaderOffsetId> for ReaderOffsetId
impl PartialEq<ReaderOffsetId> for ReaderOffsetId
sourcefn eq(&self, other: &ReaderOffsetId) -> bool
fn eq(&self, other: &ReaderOffsetId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReaderOffsetId) -> bool
fn ne(&self, other: &ReaderOffsetId) -> bool
This method tests for !=
.
impl Copy for ReaderOffsetId
impl Eq for ReaderOffsetId
impl StructuralEq for ReaderOffsetId
impl StructuralPartialEq for ReaderOffsetId
Auto Trait Implementations
impl RefUnwindSafe for ReaderOffsetId
impl Send for ReaderOffsetId
impl Sync for ReaderOffsetId
impl Unpin for ReaderOffsetId
impl UnwindSafe for ReaderOffsetId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more