pub struct MemInfoEntryExtended<'m> { /* private fields */ }
Expand description
A parsed /proc/meminfo
entry with additional information about its position in the file
stream.
Implementations§
Source§impl<'m> MemInfoEntryExtended<'m>
impl<'m> MemInfoEntryExtended<'m>
Sourcepub fn byte_range(&self) -> &Range<usize>
pub fn byte_range(&self) -> &Range<usize>
Returns the byte range of the entry in the /proc/meminfo
file stream.
Sourcepub fn start_pos(&self) -> usize
pub fn start_pos(&self) -> usize
Returns the start position of the entry in the /proc/meminfo
file stream.
Sourcepub fn end_pos(&self) -> usize
pub fn end_pos(&self) -> usize
Returns the end position of the entry in the /proc/meminfo
file stream.
Sourcepub fn required_capacity(&self) -> usize
pub fn required_capacity(&self) -> usize
Returns the required buffer capacity to read fit the entry raw bytes.
Methods from Deref<Target = MemInfoEntry<'m>>§
Trait Implementations§
Source§impl<'m> Clone for MemInfoEntryExtended<'m>
impl<'m> Clone for MemInfoEntryExtended<'m>
Source§fn clone(&self) -> MemInfoEntryExtended<'m>
fn clone(&self) -> MemInfoEntryExtended<'m>
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<'m> Debug for MemInfoEntryExtended<'m>
impl<'m> Debug for MemInfoEntryExtended<'m>
Source§impl<'m> Deref for MemInfoEntryExtended<'m>
impl<'m> Deref for MemInfoEntryExtended<'m>
Source§impl<'m> DerefMut for MemInfoEntryExtended<'m>
impl<'m> DerefMut for MemInfoEntryExtended<'m>
Source§impl<'m> PartialEq for MemInfoEntryExtended<'m>
impl<'m> PartialEq for MemInfoEntryExtended<'m>
impl<'m> Eq for MemInfoEntryExtended<'m>
impl<'m> StructuralPartialEq for MemInfoEntryExtended<'m>
Auto Trait Implementations§
impl<'m> Freeze for MemInfoEntryExtended<'m>
impl<'m> RefUnwindSafe for MemInfoEntryExtended<'m>
impl<'m> Send for MemInfoEntryExtended<'m>
impl<'m> Sync for MemInfoEntryExtended<'m>
impl<'m> Unpin for MemInfoEntryExtended<'m>
impl<'m> UnwindSafe for MemInfoEntryExtended<'m>
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