pub struct EtsTable {
pub name: String,
pub table_type: EtsType,
pub access: EtsAccess,
pub named_table: bool,
pub key_pos: u32,
}Expand description
Description of an ETS table.
Fields§
§name: StringTable name (atom)
table_type: EtsTypeTable type
access: EtsAccessAccess permissions
named_table: boolWhether the table is named (accessible by name instead of ref)
key_pos: u32Key position (1-indexed tuple position)
Implementations§
Source§impl EtsTable
impl EtsTable
Sourcepub fn emit_insert(&self, tuple: BeamExpr) -> BeamExpr
pub fn emit_insert(&self, tuple: BeamExpr) -> BeamExpr
Emit ets:insert/2 call.
Sourcepub fn emit_lookup(&self, key: BeamExpr) -> BeamExpr
pub fn emit_lookup(&self, key: BeamExpr) -> BeamExpr
Emit ets:lookup/2 call.
Sourcepub fn emit_delete(&self, key: BeamExpr) -> BeamExpr
pub fn emit_delete(&self, key: BeamExpr) -> BeamExpr
Emit ets:delete/2 call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EtsTable
impl RefUnwindSafe for EtsTable
impl Send for EtsTable
impl Sync for EtsTable
impl Unpin for EtsTable
impl UnsafeUnpin for EtsTable
impl UnwindSafe for EtsTable
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