Struct biscuit_auth::datalog::SymbolTable
source · [−]pub struct SymbolTable { /* private fields */ }Implementations
sourceimpl SymbolTable
impl SymbolTable
pub fn new() -> Self
pub fn from(symbols: Vec<String>) -> Self
pub fn extend(&mut self, other: &SymbolTable)
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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
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) -> 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
sourceimpl Clone for SymbolTable
impl Clone for SymbolTable
sourcefn clone(&self) -> SymbolTable
fn clone(&self) -> SymbolTable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SymbolTable
impl Debug for SymbolTable
sourceimpl Default for SymbolTable
impl Default for SymbolTable
sourcefn default() -> SymbolTable
fn default() -> SymbolTable
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SymbolTable> for SymbolTable
impl PartialEq<SymbolTable> for SymbolTable
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &SymbolTable) -> bool
fn ne(&self, other: &SymbolTable) -> bool
This method tests for !=.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more