[−][src]Struct symbolic::symcache::format::Seg
A reference to a segment in the SymCache.
Fields
offset: u32
Absolute file offset of this segment.
len: L
Number of items in this segment.
Implementations
impl<T, L> Seg<T, L>
[src]
pub fn new(offset: u32, len: L) -> Seg<T, L>
[src]
Creates a segment with specified offset and length.
impl<T, L> Seg<T, L> where
L: Copy + Into<u64>,
[src]
L: Copy + Into<u64>,
pub fn read(&self, data: &'a [u8]) -> Result<&'a [T], SymCacheError>
[src]
Reads data for this segment from the SymCache buffer.
pub fn get<U>(
&self,
data: &'a [u8],
index: U
) -> Result<Option<&'a T>, SymCacheError> where
U: Into<u64>,
[src]
&self,
data: &'a [u8],
index: U
) -> Result<Option<&'a T>, SymCacheError> where
U: Into<u64>,
Reads a single element within a segment from the SymCache buffer.
impl<L> Seg<u8, L> where
L: Copy + Into<u64>,
[src]
L: Copy + Into<u64>,
pub fn read_str(&self, data: &'a [u8]) -> Result<&'a str, SymCacheError>
[src]
Reads an entire binary segment as string.
Trait Implementations
impl<T, L> Clone for Seg<T, L> where
L: Copy,
[src]
L: Copy,
impl<T, L> Copy for Seg<T, L> where
L: Copy,
[src]
L: Copy,
impl<T, L> Debug for Seg<T, L> where
L: Copy + Debug,
[src]
L: Copy + Debug,
impl<T, L> Default for Seg<T, L> where
L: Default,
[src]
L: Default,
impl<T, L> Eq for Seg<T, L>
[src]
impl<T, L> Hash for Seg<T, L>
[src]
pub fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T, L> Ord for Seg<T, L>
[src]
pub fn cmp(&self, other: &Seg<T, L>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T, L> PartialEq<Seg<T, L>> for Seg<T, L>
[src]
pub fn eq(&self, other: &Seg<T, L>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, L> PartialOrd<Seg<T, L>> for Seg<T, L>
[src]
pub fn partial_cmp(&self, other: &Seg<T, L>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
Auto Trait Implementations
impl<T, L> RefUnwindSafe for Seg<T, L> where
L: RefUnwindSafe,
T: RefUnwindSafe,
[src]
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, L> Send for Seg<T, L> where
L: Send,
T: Send,
[src]
L: Send,
T: Send,
impl<T, L> Sync for Seg<T, L> where
L: Sync,
T: Sync,
[src]
L: Sync,
T: Sync,
impl<T, L> Unpin for Seg<T, L> where
L: Unpin,
T: Unpin,
[src]
L: Unpin,
T: Unpin,
impl<T, L> UnwindSafe for Seg<T, L> where
L: UnwindSafe,
T: UnwindSafe,
[src]
L: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RuleType for T where
T: Eq + Ord + Copy + Debug + Hash,
[src]
T: Eq + Ord + Copy + Debug + Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,