pub struct CausalNamedLinks<'a> { /* private fields */ }Trait Implementations§
Source§impl NamedTypeLinks<u128> for CausalNamedLinks<'_>
impl NamedTypeLinks<u128> for CausalNamedLinks<'_>
Source§fn query_limits(&self) -> Option<QueryLimits>
fn query_limits(&self) -> Option<QueryLimits>
A checked transport may restrict numeric input and query expansion.
Source§fn reserve_query_allocations(
&mut self,
processor: &GenericQueryProcessor<u128>,
restriction: &LinoLink,
substitution: &LinoLink,
) -> Result<Option<HashSet<u128>>>
fn reserve_query_allocations( &mut self, processor: &GenericQueryProcessor<u128>, restriction: &LinoLink, substitution: &LinoLink, ) -> Result<Option<HashSet<u128>>>
Reserve the actual allocation sequence without staging observable rows.
Backends with a recycling allocator may retain the legacy probe path.
fn create(&mut self, source: u128, target: u128) -> u128
Source§fn try_create(&mut self, source: u128, target: u128) -> Result<u128>
fn try_create(&mut self, source: u128, target: u128) -> Result<u128>
Fallible allocation for backends that can report transaction/address errors.
fn ensure_created(&mut self, id: u128) -> u128
fn try_ensure_created(&mut self, id: u128) -> Result<u128>
fn get_link(&mut self, id: u128) -> Option<GenericLink<u128>>
fn exists(&mut self, id: u128) -> bool
Source§fn update_observed(
&mut self,
id: u128,
source: u128,
target: u128,
observer: ChangeObserver<'_, u128>,
) -> Result<GenericLink<u128>>
fn update_observed( &mut self, id: u128, source: u128, target: u128, observer: ChangeObserver<'_, u128>, ) -> Result<GenericLink<u128>>
Self::update, reporting every change the update caused. Read moreSource§fn delete_observed(
&mut self,
id: u128,
observer: ChangeObserver<'_, u128>,
) -> Result<GenericLink<u128>>
fn delete_observed( &mut self, id: u128, observer: ChangeObserver<'_, u128>, ) -> Result<GenericLink<u128>>
Self::delete, reporting every change the deletion caused. Read morefn all_links(&mut self) -> Vec<GenericLink<u128>>
fn search(&mut self, source: u128, target: u128) -> Option<u128>
fn get_or_create(&mut self, source: u128, target: u128) -> u128
fn get_name(&mut self, id: u128) -> Result<Option<String>>
fn format_reference(&mut self, id: u128) -> Result<String>
fn set_name(&mut self, id: u128, name: &str) -> Result<u128>
fn get_by_name(&mut self, name: &str) -> Result<Option<u128>>
fn remove_name(&mut self, id: u128) -> Result<()>
fn save(&mut self) -> Result<()>
Source§fn reference_exists(&mut self, id: T) -> bool
fn reference_exists(&mut self, id: T) -> bool
Whether a reference of a query to
id names a link that exists. Read moreSource§fn claims(&mut self, id: T) -> Option<bool>
fn claims(&mut self, id: T) -> Option<bool>
Whether
id is an address of this store, so a link created there
(Self::ensure_created, the undo of a delete) belongs in it; None
for a plain store, which has no addresses of its own. Read moreSource§fn next_created_addresses(&mut self, count: usize) -> Result<Vec<T>>
fn next_created_addresses(&mut self, count: usize) -> Result<Vec<T>>
The addresses the next
count links created in the store get. Read morefn update(&mut self, id: T, source: T, target: T) -> Result<GenericLink<T>>
fn delete(&mut self, id: T) -> Result<GenericLink<T>>
Source§fn query_links(
&mut self,
index: Option<T>,
source: Option<T>,
target: Option<T>,
) -> Vec<GenericLink<T>>
fn query_links( &mut self, index: Option<T>, source: Option<T>, target: Option<T>, ) -> Vec<GenericLink<T>>
The links that match a pattern, where
None matches any value, in
the order of their addresses. Read moreSource§fn try_get_or_create(&mut self, source: T, target: T) -> Result<T>
fn try_get_or_create(&mut self, source: T, target: T) -> Result<T>
Fallible pair lookup/allocation for composable query and decorator writes.
fn get_or_create_named(&mut self, name: &str) -> Result<T>
fn format_lino(&mut self, link: &GenericLink<T>) -> Result<String>
fn lino_lines(&mut self) -> Result<Vec<String>>
fn write_lino_output<P: AsRef<Path>>(&mut self, path: P) -> Result<()>where
Self: Sized,
fn print_all_lino(&mut self) -> Result<()>
fn print_change_lino( &mut self, before: &Option<GenericLink<T>>, after: &Option<GenericLink<T>>, ) -> Result<()>
fn format_structure(&mut self, id: T) -> Result<String>
fn format_structure_recursive( &mut self, id: T, visited: &mut HashSet<T>, ) -> Result<String>
Auto Trait Implementations§
impl<'a> !UnwindSafe for CausalNamedLinks<'a>
impl<'a> Freeze for CausalNamedLinks<'a>
impl<'a> RefUnwindSafe for CausalNamedLinks<'a>
impl<'a> Send for CausalNamedLinks<'a>
impl<'a> Sync for CausalNamedLinks<'a>
impl<'a> Unpin for CausalNamedLinks<'a>
impl<'a> UnsafeUnpin for CausalNamedLinks<'a>
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