Skip to main content

LoopWindow

Struct LoopWindow 

Source
pub struct LoopWindow<'a> { /* private fields */ }
Expand description

The view object that is returned as Iterate during operations.

It provides operation abstractions on the RelativePtr and the MatrixHandler objects related to the context of iterating over the matrix.

Implementations§

Source§

impl<'a> LoopWindow<'a>

Source

pub fn new(rel_ptr: RelativePtr<u8>, handler: &'a MatrixHandler) -> Self

Creates a new LoopWindow instance of a record.

§Params:

@rel_ptr: The RelativePtr of the current record.
@handler: A reference to the handler owned by the caller.

§Returns:

An instance of Self.

Source

pub fn view_data_as<T>(&self) -> &'a T

Returns a reference to the current record data typed as T.

Source

pub fn view_data_raw(&self) -> &'a [u8]

Returns a reference to the current record data as a raw pointer.

Source

pub fn view_header(&self) -> &'a BlockHeader

Returns a reference to the header of this record

Source

pub fn view_offset(&self) -> u32

Returns the offset of the current record

Trait Implementations§

Source§

impl<'a> Send for LoopWindow<'a>

Source§

impl<'a> Sync for LoopWindow<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for LoopWindow<'a>

§

impl<'a> RefUnwindSafe for LoopWindow<'a>

§

impl<'a> Unpin for LoopWindow<'a>

§

impl<'a> UnsafeUnpin for LoopWindow<'a>

§

impl<'a> UnwindSafe for LoopWindow<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.