pub struct RemapLinks<L: NamedTypeLinks, M: AddressMap> { /* private fields */ }Expand description
links under the addresses of map; see the module documentation.
Implementations§
Source§impl<L: NamedTypeLinks, M: AddressMap> RemapLinks<L, M>
impl<L: NamedTypeLinks, M: AddressMap> RemapLinks<L, M>
Trait Implementations§
Source§impl<L: NamedTypeLinks, M: AddressMap> NamedTypeLinks for RemapLinks<L, M>
impl<L: NamedTypeLinks, M: AddressMap> NamedTypeLinks for RemapLinks<L, M>
Source§fn create(&mut self, source: u32, target: u32) -> u32
fn create(&mut self, source: u32, target: u32) -> u32
Panics when source or target is not of this network; use
try_create.
Source§fn ensure_created(&mut self, id: u32) -> u32
fn ensure_created(&mut self, id: u32) -> u32
Panics when id is not of this network; use
try_ensure_created.
fn try_ensure_created(&mut self, id: u32) -> Result<u32>
fn get_link(&mut self, id: u32) -> Option<Link>
fn exists(&mut self, id: u32) -> bool
Source§fn try_create(&mut self, source: u32, target: u32) -> Result<u32>
fn try_create(&mut self, source: u32, target: u32) -> Result<u32>
Fallible allocation for backends that can report transaction/address errors.
Source§fn reference_exists(&mut self, id: u32) -> bool
fn reference_exists(&mut self, id: u32) -> bool
Whether a reference of a query to
id names a link that exists. Read moreSource§fn claims(&mut self, id: u32) -> Option<bool>
fn claims(&mut self, id: u32) -> 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<u32>>
fn next_created_addresses(&mut self, count: usize) -> Result<Vec<u32>>
The addresses the next
count links created in the store get. Read moreSource§fn update_observed(
&mut self,
id: u32,
source: u32,
target: u32,
observer: ChangeObserver<'_>,
) -> Result<Link>
fn update_observed( &mut self, id: u32, source: u32, target: u32, observer: ChangeObserver<'_>, ) -> Result<Link>
Self::update, reporting every change the update caused. Read moreSource§fn delete_observed(
&mut self,
id: u32,
observer: ChangeObserver<'_>,
) -> Result<Link>
fn delete_observed( &mut self, id: u32, observer: ChangeObserver<'_>, ) -> Result<Link>
Self::delete, reporting every change the deletion caused. Read morefn all_links(&mut self) -> Vec<Link> ⓘ
Source§fn query_links(
&mut self,
index: Option<u32>,
source: Option<u32>,
target: Option<u32>,
) -> Vec<Link> ⓘ
fn query_links( &mut self, index: Option<u32>, source: Option<u32>, target: Option<u32>, ) -> Vec<Link> ⓘ
The links that match a pattern, where
None matches any value, in
the order of their addresses. Read morefn search(&mut self, source: u32, target: u32) -> Option<u32>
fn get_or_create(&mut self, source: u32, target: u32) -> u32
Source§fn try_get_or_create(&mut self, source: u32, target: u32) -> Result<u32>
fn try_get_or_create(&mut self, source: u32, target: u32) -> Result<u32>
Fallible pair lookup/allocation for composable query and decorator writes.
fn get_name(&mut self, id: u32) -> Result<Option<String>>
fn set_name(&mut self, id: u32, name: &str) -> Result<u32>
fn get_by_name(&mut self, name: &str) -> Result<Option<u32>>
fn remove_name(&mut self, id: u32) -> Result<()>
fn save(&mut self) -> Result<()>
fn get_or_create_named(&mut self, name: &str) -> Result<u32>
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<T>,
_restriction: &LinoLink,
_substitution: &LinoLink,
) -> Result<Option<HashSet<T>>>
fn reserve_query_allocations( &mut self, _processor: &GenericQueryProcessor<T>, _restriction: &LinoLink, _substitution: &LinoLink, ) -> Result<Option<HashSet<T>>>
Reserve the actual allocation sequence without staging observable rows.
Backends with a recycling allocator may retain the legacy probe path.
fn update(&mut self, id: T, source: T, target: T) -> Result<GenericLink<T>>
fn delete(&mut self, id: T) -> Result<GenericLink<T>>
fn format_reference(&mut self, id: T) -> Result<String>
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<L, M> Freeze for RemapLinks<L, M>
impl<L, M> RefUnwindSafe for RemapLinks<L, M>where
L: RefUnwindSafe,
M: RefUnwindSafe,
impl<L, M> Send for RemapLinks<L, M>
impl<L, M> Sync for RemapLinks<L, M>
impl<L, M> Unpin for RemapLinks<L, M>
impl<L, M> UnsafeUnpin for RemapLinks<L, M>where
L: UnsafeUnpin,
M: UnsafeUnpin,
impl<L, M> UnwindSafe for RemapLinks<L, M>where
L: UnwindSafe,
M: UnwindSafe,
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