pub struct RayLayout {
pub columns: Vec<Column>,
pub record_size: usize,
/* private fields */
}Expand description
Byte layout of one ray record.
Fields§
§columns: Vec<Column>§record_size: usizeImplementations§
Source§impl RayLayout
impl RayLayout
pub fn from_header(h: &Header) -> Self
pub fn from_columns(columns: Vec<Column>) -> Self
Sourcepub fn decode(&self, rec: &[u8]) -> Ray
pub fn decode(&self, rec: &[u8]) -> Ray
Decode one record. rec must be at least record_size bytes.
Trait Implementations§
impl StructuralPartialEq for RayLayout
Auto Trait Implementations§
impl Freeze for RayLayout
impl RefUnwindSafe for RayLayout
impl Send for RayLayout
impl Sync for RayLayout
impl Unpin for RayLayout
impl UnsafeUnpin for RayLayout
impl UnwindSafe for RayLayout
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