Skip to main content

RowWriter

Struct RowWriter 

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

Mutable access to one row of one table for one node, tracking dirty words and node effects.

Generated *Mut types wrap this. Every scalar write is: masked word update, change bit into the row dirty mask, first-dirty append into the table’s list, effect bits into the node row, first-touched append into the store’s list — all branch-free.

Implementations§

Source§

impl<'a> RowWriter<'a>

Source

pub fn words(&self) -> &[Word]

Current raw words of the row.

Source

pub fn str(&self, word: usize) -> &str

Text of a string field at word.

Source

pub fn resource<R: FlatResource>(&self, word: usize) -> Option<R::View<'_>>

Zero-copy typed view of the resource field at word.

Auto Trait Implementations§

§

impl<'a> !UnwindSafe for RowWriter<'a>

§

impl<'a> Forget for RowWriter<'a>

§

impl<'a> Freeze for RowWriter<'a>
where &'a mut [u32]: Freeze, &'a mut u32: Freeze, &'a mut DirtyList: Freeze, &'a mut NodeRow: Freeze, &'a TableMeta: Freeze, &'a mut StrArena: Freeze, &'a mut ResourceStore: Freeze,

§

impl<'a> Move for RowWriter<'a>

§

impl<'a> RefUnwindSafe for RowWriter<'a>

§

impl<'a> Send for RowWriter<'a>
where RawVecInner: Send, &'a TableMeta: Send, OnceLock<TypeId>: Send, RawTable<((u64, u64), ResourceId)>: Send,

§

impl<'a> Sync for RowWriter<'a>
where RawVecInner: Sync, Arc<OwnedTableDesc>: Sync, OnceLock<TypeId>: Sync, RawTable<((u64, u64), ResourceId)>: Sync,

§

impl<'a> Unpin for RowWriter<'a>
where &'a mut [u32]: Unpin, &'a mut u32: Unpin, &'a mut DirtyList: Unpin, &'a mut NodeRow: Unpin, &'a TableMeta: Unpin, &'a mut StrArena: Unpin, &'a mut ResourceStore: Unpin,

§

impl<'a> UnsafeUnpin for RowWriter<'a>
where &'a mut [u32]: UnsafeUnpin, &'a mut u32: UnsafeUnpin, &'a mut DirtyList: UnsafeUnpin, &'a mut NodeRow: UnsafeUnpin, &'a TableMeta: UnsafeUnpin, &'a mut StrArena: UnsafeUnpin, &'a mut ResourceStore: UnsafeUnpin,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.