pub struct CompactRow { /* private fields */ }Implementations§
Source§impl CompactRow
impl CompactRow
pub fn new(columns: Arc<[String]>, values: Vec<Value>) -> Self
pub fn with_layout(columns: Arc<CompactRowLayout>, values: Vec<Value>) -> Self
pub fn loaded_relation(&self, name: &str) -> Option<&SmartList<CompactRow>>
pub fn set_loaded_relation(&mut self, name: String, list: SmartList<CompactRow>)
pub fn take_loaded_relation( &mut self, name: &str, ) -> Option<SmartList<CompactRow>>
pub fn has_loaded_relations(&self) -> bool
Sourcepub fn clear_loaded_relations(&mut self)
pub fn clear_loaded_relations(&mut self)
Drop read-only relation metadata before retaining a persistence snapshot.
pub fn get(&self, name: &str) -> Option<&Value>
pub fn indexed_load_state(&self, layout: Arc<FieldLayout>) -> LoadState
pub fn validate_dynamic_properties(&self) -> Result<(), String>
Sourcepub fn attach_dynamic_property_definitions(
rows: &mut [Self],
definitions: Arc<DynamicPropertyDefinitions>,
)
pub fn attach_dynamic_property_definitions( rows: &mut [Self], definitions: Arc<DynamicPropertyDefinitions>, )
One schema binding per actual result layout, never a dictionary copy per row.
Share actual shapes after relation hydration. The temporary pool cannot retain historical projections, entity values or mutation ownership.
pub fn get_mut(&mut self, name: &str) -> Option<&mut Value>
Sourcepub fn insert(&mut self, name: String, value: Value) -> Option<Value>
pub fn insert(&mut self, name: String, value: Value) -> Option<Value>
Adds or replaces a projected value. Column layouts remain shared until an enhancement actually changes the shape of this row.
pub fn remove(&mut self, name: &str) -> Option<Value>
pub fn extend(&mut self, other: CompactRow)
pub fn contains_key(&self, name: &str) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&String, &Value)>
pub fn keys(&self) -> impl Iterator<Item = &String>
pub fn values(&self) -> impl Iterator<Item = &Value>
pub fn into_map(self) -> BTreeMap<String, Value>
Trait Implementations§
Source§impl Clone for CompactRow
impl Clone for CompactRow
Source§impl Debug for CompactRow
impl Debug for CompactRow
Source§impl PartialEq for CompactRow
impl PartialEq for CompactRow
impl StructuralPartialEq for CompactRow
Auto Trait Implementations§
impl Freeze for CompactRow
impl RefUnwindSafe for CompactRow
impl Send for CompactRow
impl Sync for CompactRow
impl Unpin for CompactRow
impl UnsafeUnpin for CompactRow
impl UnwindSafe for CompactRow
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