pub struct ExternalMmapRegion {
pub mapping_id: usize,
pub offset: usize,
pub len: usize,
}Expand description
One validated read-only range in an ONNX external-data mmap.
Fields§
§mapping_id: usizeIdentity of the live mapping that owns this range.
offset: usizeAbsolute byte offset within the mapping.
len: usizeLength of the mapped tensor range in bytes.
Trait Implementations§
Source§impl Clone for ExternalMmapRegion
impl Clone for ExternalMmapRegion
Source§fn clone(&self) -> ExternalMmapRegion
fn clone(&self) -> ExternalMmapRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExternalMmapRegion
Source§impl Debug for ExternalMmapRegion
impl Debug for ExternalMmapRegion
impl Eq for ExternalMmapRegion
Source§impl Hash for ExternalMmapRegion
impl Hash for ExternalMmapRegion
Source§impl Ord for ExternalMmapRegion
impl Ord for ExternalMmapRegion
Source§fn cmp(&self, other: &ExternalMmapRegion) -> Ordering
fn cmp(&self, other: &ExternalMmapRegion) -> Ordering
1.21.0 (const: unstable) · 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 ExternalMmapRegion
impl PartialEq for ExternalMmapRegion
Source§impl PartialOrd for ExternalMmapRegion
impl PartialOrd for ExternalMmapRegion
impl StructuralPartialEq for ExternalMmapRegion
Auto Trait Implementations§
impl Freeze for ExternalMmapRegion
impl RefUnwindSafe for ExternalMmapRegion
impl Send for ExternalMmapRegion
impl Sync for ExternalMmapRegion
impl Unpin for ExternalMmapRegion
impl UnsafeUnpin for ExternalMmapRegion
impl UnwindSafe for ExternalMmapRegion
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