Struct biscuit_auth::datalog::SymbolTable
source · pub struct SymbolTable { /* private fields */ }Implementations§
source§impl SymbolTable
impl SymbolTable
pub fn new() -> Self
pub fn from(symbols: Vec<String>) -> Result<Self, Format>
pub fn from_symbols_and_public_keys( symbols: Vec<String>, public_keys: Vec<PublicKey> ) -> Result<Self, Format>
pub fn extend(&mut self, other: &SymbolTable) -> Result<(), Format>
pub fn insert(&mut self, s: &str) -> SymbolIndex
pub fn add(&mut self, s: &str) -> Term
pub fn get(&self, s: &str) -> Option<SymbolIndex>
pub fn strings(&self) -> Vec<String>
pub fn current_offset(&self) -> usize
pub fn split_at(&mut self, offset: usize) -> SymbolTable
pub fn is_disjoint(&self, other: &SymbolTable) -> bool
pub fn get_symbol(&self, i: SymbolIndex) -> Option<&str>
pub fn print_symbol(&self, i: SymbolIndex) -> Result<String, Format>
pub fn print_symbol_default(&self, i: SymbolIndex) -> String
pub fn print_world(&self, w: &World) -> String
pub fn print_term(&self, term: &Term) -> String
pub fn print_fact(&self, f: &Fact) -> String
pub fn print_predicate(&self, p: &Predicate) -> String
pub fn print_expression(&self, e: &Expression) -> String
pub fn print_rule_body(&self, r: &Rule) -> String
pub fn print_rule(&self, r: &Rule) -> String
pub fn print_check(&self, c: &Check) -> String
Trait Implementations§
source§impl Clone for SymbolTable
impl Clone for SymbolTable
source§fn clone(&self) -> SymbolTable
fn clone(&self) -> SymbolTable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SymbolTable
impl Debug for SymbolTable
source§impl Default for SymbolTable
impl Default for SymbolTable
source§impl PartialEq for SymbolTable
impl PartialEq for SymbolTable
source§fn eq(&self, other: &SymbolTable) -> bool
fn eq(&self, other: &SymbolTable) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for SymbolTable
impl StructuralPartialEq for SymbolTable
Auto Trait Implementations§
impl RefUnwindSafe for SymbolTable
impl Send for SymbolTable
impl Sync for SymbolTable
impl Unpin for SymbolTable
impl UnwindSafe for SymbolTable
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