pub enum RevisedElement<'a> {
Null,
Inline {
kind: ReferenceKind,
body: &'a [u8],
},
Heap {
kind: ReferenceKind,
external: bool,
collection: u64,
index: u32,
},
}Expand description
Where a 1.12 element keeps its encoded reference.
H5T__ref_disk_getsize makes the same split: an H5R_OBJECT2 naming an
object in this file is short enough to sit in the element, and every other
element holds a global-heap blob id instead.
Variants§
Null
An element naming nothing: reference type 0 over a nil blob id.
Inline
The encoded reference, less its two-byte header, stored in the element.
Never external: H5T__ref_disk_getsize takes the direct-copy arm only
for an H5R_OBJECT2 whose flags are clear (H5Tref.c:890).
Fields
§
kind: ReferenceKindThe kind the element’s own type byte names.
Heap
The encoded reference lives in a global-heap collection.
Fields
§
kind: ReferenceKindThe kind the element’s own type byte names.
Trait Implementations§
Source§impl<'a> Clone for RevisedElement<'a>
impl<'a> Clone for RevisedElement<'a>
Source§impl<'a> Debug for RevisedElement<'a>
impl<'a> Debug for RevisedElement<'a>
impl<'a> Eq for RevisedElement<'a>
Source§impl<'a> PartialEq for RevisedElement<'a>
impl<'a> PartialEq for RevisedElement<'a>
impl<'a> StructuralPartialEq for RevisedElement<'a>
Auto Trait Implementations§
impl<'a> Freeze for RevisedElement<'a>
impl<'a> RefUnwindSafe for RevisedElement<'a>
impl<'a> Send for RevisedElement<'a>
impl<'a> Sync for RevisedElement<'a>
impl<'a> Unpin for RevisedElement<'a>
impl<'a> UnsafeUnpin for RevisedElement<'a>
impl<'a> UnwindSafe for RevisedElement<'a>
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