Struct terminus_store::layer::child::ChildLayerFileBuilder [−][src]
A builder for a child layer.
This builder takes node, predicate and value strings in lexical
order through the corresponding add_<thing>
methods. When
they’re all added, into_phase2()
is to be called to turn this
builder into a second builder that takes triple data.
Implementations
impl<F: 'static + FileLoad + FileStore + Clone + Send + Sync> ChildLayerFileBuilder<F>
[src]
pub fn from_files(parent: Arc<dyn Layer>, files: &ChildLayerFiles<F>) -> Self
[src]
Create the builder from the given files.
pub async fn add_node(&mut self, node: &str) -> Result<u64>
[src]
Add a node string.
Does nothing if the node already exists in the parent, and panics if the given node string is not a lexical successor of the previous node string.
pub async fn add_predicate(&mut self, predicate: &str) -> Result<u64>
[src]
Add a predicate string.
Does nothing if the predicate already exists in the paretn, and panics if the given predicate string is not a lexical successor of the previous predicate string.
pub async fn add_value(&mut self, value: &str) -> Result<u64>
[src]
Add a value string.
Does nothing if the value already exists in the paretn, and panics if the given value string is not a lexical successor of the previous value string.
pub async fn add_nodes<I: 'static + IntoIterator<Item = String> + Send>(
&mut self,
nodes: I
) -> Result<Vec<u64>> where
<I as IntoIterator>::IntoIter: Send,
[src]
&mut self,
nodes: I
) -> Result<Vec<u64>> where
<I as IntoIterator>::IntoIter: Send,
Add nodes from an iterable.
Panics if the nodes are not in lexical order, or if previous added nodes are a lexical succesor of any of these nodes. Skips any nodes that are already part of the base layer.
pub async fn add_predicates<I: 'static + IntoIterator<Item = String> + Send>(
&mut self,
predicates: I
) -> Result<Vec<u64>> where
<I as IntoIterator>::IntoIter: Send,
[src]
&mut self,
predicates: I
) -> Result<Vec<u64>> where
<I as IntoIterator>::IntoIter: Send,
Add predicates from an iterable.
Panics if the predicates are not in lexical order, or if previous added predicates are a lexical succesor of any of these predicates. Skips any predicates that are already part of the base layer.
pub async fn add_values<I: 'static + IntoIterator<Item = String> + Send>(
&mut self,
values: I
) -> Result<Vec<u64>> where
<I as IntoIterator>::IntoIter: Send,
[src]
&mut self,
values: I
) -> Result<Vec<u64>> where
<I as IntoIterator>::IntoIter: Send,
Add values from an iterable.
Panics if the values are not in lexical order, or if previous added values are a lexical succesor of any of these values. Skips any nodes that are already part of the base layer.
pub async fn into_phase2(self) -> Result<ChildLayerFileBuilderPhase2<F>>
[src]
Turn this builder into a phase 2 builder that will take triple data.
Auto Trait Implementations
impl<F> !RefUnwindSafe for ChildLayerFileBuilder<F>
impl<F> Send for ChildLayerFileBuilder<F>
impl<F> Sync for ChildLayerFileBuilder<F> where
<F as FileStore>::Write: Sync,
<F as FileStore>::Write: Sync,
impl<F> Unpin for ChildLayerFileBuilder<F> where
F: Unpin,
F: Unpin,
impl<F> !UnwindSafe for ChildLayerFileBuilder<F>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,