pub struct FieldLayout {
pub group_id: String,
pub field_id: String,
pub plane_id: String,
pub shape: Vec<i64>,
pub dtype: String,
pub field_offset_bytes: i64,
pub page_stride_bytes: i64,
}Expand description
One field’s geometry.
Fields§
§group_id: StringIts group.
field_id: StringThe field (layer.<id>.<plane>).
plane_id: StringIts plane.
shape: Vec<i64>The rank-local shape of one page’s payload.
dtype: StringThe dtype the arena views it as.
field_offset_bytes: i64Its offset within a page of the plane.
page_stride_bytes: i64Bytes between consecutive pages.
Implementations§
Source§impl FieldLayout
impl FieldLayout
Sourcepub fn element_size(&self) -> i64
pub fn element_size(&self) -> i64
Bytes per element.
Sourcepub fn payload_bytes(&self) -> i64
pub fn payload_bytes(&self) -> i64
Bytes of one page’s payload.
Trait Implementations§
Source§impl Clone for FieldLayout
impl Clone for FieldLayout
Source§impl Debug for FieldLayout
impl Debug for FieldLayout
impl Eq for FieldLayout
Source§impl PartialEq for FieldLayout
impl PartialEq for FieldLayout
impl StructuralPartialEq for FieldLayout
Auto Trait Implementations§
impl Freeze for FieldLayout
impl RefUnwindSafe for FieldLayout
impl Send for FieldLayout
impl Sync for FieldLayout
impl Unpin for FieldLayout
impl UnsafeUnpin for FieldLayout
impl UnwindSafe for FieldLayout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.