[−][src]Struct oxigraph::store::sled::SledStore
Store based on the Sled key-value database. It encodes a RDF dataset and allows to query it using SPARQL.
To use it, the "sled"
feature needs to be activated.
Warning: Sled is not stable yet and might break its storage format.
Usage example:
use oxigraph::SledStore; use oxigraph::sparql::QueryResults; use oxigraph::model::*; let store = SledStore::open("example.db")?; // insertion let ex = NamedNode::new("http://example.com")?; let quad = Quad::new(ex.clone(), ex.clone(), ex.clone(), None); store.insert(&quad)?; // quad filter let results: Result<Vec<Quad>,_> = store.quads_for_pattern(None, None, None, None).collect(); assert_eq!(vec![quad], results?); // SPARQL query if let QueryResults::Solutions(mut solutions) = store.query("SELECT ?s WHERE { ?s ?p ?o }")? { assert_eq!(solutions.next().unwrap()?.get("s"), Some(&ex.into())); };
Implementations
impl SledStore
[src]
pub fn new() -> Result<Self, Error>
[src]
Creates a temporary SledStore
that will be deleted after drop.
pub fn open(path: impl AsRef<Path>) -> Result<Self, Error>
[src]
Opens a SledStore
and creates it if it does not exist yet.
pub fn query(
&self,
query: impl TryInto<Query, Error = impl Into<EvaluationError>>
) -> Result<QueryResults, EvaluationError>
[src]
&self,
query: impl TryInto<Query, Error = impl Into<EvaluationError>>
) -> Result<QueryResults, EvaluationError>
Executes a SPARQL 1.1 query.
See MemoryStore
for a usage example.
pub fn query_opt(
&self,
query: impl TryInto<Query, Error = impl Into<EvaluationError>>,
options: QueryOptions
) -> Result<QueryResults, EvaluationError>
[src]
&self,
query: impl TryInto<Query, Error = impl Into<EvaluationError>>,
options: QueryOptions
) -> Result<QueryResults, EvaluationError>
Executes a SPARQL 1.1 query with some options.
pub fn quads_for_pattern(
&self,
subject: Option<NamedOrBlankNodeRef<'_>>,
predicate: Option<NamedNodeRef<'_>>,
object: Option<TermRef<'_>>,
graph_name: Option<GraphNameRef<'_>>
) -> SledQuadIterⓘNotable traits for SledQuadIter
impl Iterator for SledQuadIter type Item = Result<Quad, Error>;
[src]
&self,
subject: Option<NamedOrBlankNodeRef<'_>>,
predicate: Option<NamedNodeRef<'_>>,
object: Option<TermRef<'_>>,
graph_name: Option<GraphNameRef<'_>>
) -> SledQuadIterⓘ
Notable traits for SledQuadIter
impl Iterator for SledQuadIter type Item = Result<Quad, Error>;
Retrieves quads with a filter on each quad component
See MemoryStore
for a usage example.
pub fn iter(&self) -> SledQuadIterⓘNotable traits for SledQuadIter
impl Iterator for SledQuadIter type Item = Result<Quad, Error>;
[src]
Notable traits for SledQuadIter
impl Iterator for SledQuadIter type Item = Result<Quad, Error>;
Returns all the quads contained in the store
pub fn contains<'a>(&self, quad: impl Into<QuadRef<'a>>) -> Result<bool, Error>
[src]
Checks if this store contains a given quad
pub fn len(&self) -> usize
[src]
Returns the number of quads in the store
Warning: this function executes a full scan
pub fn is_empty(&self) -> bool
[src]
Returns if the store is empty
pub fn update(
&self,
update: impl TryInto<Update, Error = impl Into<EvaluationError>>
) -> Result<(), EvaluationError>
[src]
&self,
update: impl TryInto<Update, Error = impl Into<EvaluationError>>
) -> Result<(), EvaluationError>
Executes a SPARQL 1.1 update.
The store does not track the existence of empty named graphs. This method has no ACID guarantees.
See MemoryStore
for a usage example.
pub fn update_opt(
&self,
update: impl TryInto<Update, Error = impl Into<EvaluationError>>,
options: UpdateOptions
) -> Result<(), EvaluationError>
[src]
&self,
update: impl TryInto<Update, Error = impl Into<EvaluationError>>,
options: UpdateOptions
) -> Result<(), EvaluationError>
Executes a SPARQL 1.1 update with some options.
pub fn transaction<T, E>(
&self,
f: impl Fn(SledTransaction<'_>) -> Result<T, SledConflictableTransactionError<E>>
) -> Result<T, SledTransactionError<E>>
[src]
&self,
f: impl Fn(SledTransaction<'_>) -> Result<T, SledConflictableTransactionError<E>>
) -> Result<T, SledTransactionError<E>>
Executes an ACID transaction.
The transaction is executed if the given closure returns Ok
.
The transaction is rollbacked if the closure returns Err
.
Usage example:
use oxigraph::SledStore; use oxigraph::model::*; use oxigraph::store::sled::SledConflictableTransactionError; use std::convert::Infallible; let store = SledStore::new()?; let ex = NamedNode::new("http://example.com")?; let quad = Quad::new(ex.clone(), ex.clone(), ex.clone(), None); // transaction store.transaction(|transaction| { transaction.insert(&quad)?; Ok(()) as Result<(),SledConflictableTransactionError<Infallible>> })?; // quad filter assert!(store.contains(&quad)?);
pub fn load_graph<'a>(
&self,
reader: impl BufRead,
format: GraphFormat,
to_graph_name: impl Into<GraphNameRef<'a>>,
base_iri: Option<&str>
) -> Result<(), Error>
[src]
&self,
reader: impl BufRead,
format: GraphFormat,
to_graph_name: impl Into<GraphNameRef<'a>>,
base_iri: Option<&str>
) -> Result<(), Error>
Loads a graph file (i.e. triples) into the store
Warning: This functions saves the triples in a not atomic way. If the parsing fails in the middle of the file, only a part of it may be written to the store. Also, this method is optimized for performances and is not atomic. It might leave the store in a bad state if a crash happens during a triple insertion. Use a (memory greedy) transaction if you do not want that.
See MemoryStore
for a usage example.
Errors related to parameter validation like the base IRI use the InvalidInput
error kind.
Errors related to a bad syntax in the loaded file use the InvalidData
or UnexpectedEof
error kinds.
Errors related to data loading into the store use the other error kinds.
pub fn load_dataset(
&self,
reader: impl BufRead,
format: DatasetFormat,
base_iri: Option<&str>
) -> Result<(), Error>
[src]
&self,
reader: impl BufRead,
format: DatasetFormat,
base_iri: Option<&str>
) -> Result<(), Error>
Loads a dataset file (i.e. quads) into the store.
Warning: This functions saves the triples in a not atomic way. If the parsing fails in the middle of the file, only a part of it may be written to the store. Also, this method is optimized for performances and is not atomic. It might leave the store in a bad state if a crash happens during a quad insertion. Use a (memory greedy) transaction if you do not want that.
See MemoryStore
for a usage example.
Errors related to parameter validation like the base IRI use the InvalidInput
error kind.
Errors related to a bad syntax in the loaded file use the InvalidData
or UnexpectedEof
error kinds.
Errors related to data loading into the store use the other error kinds.
pub fn insert<'a>(&self, quad: impl Into<QuadRef<'a>>) -> Result<(), Error>
[src]
Adds a quad to this store.
This method is optimized for performances and is not atomic. It might leave the store in a bad state if a crash happens during the insertion. Use a (memory greedy) transaction if you do not want that.
pub fn remove<'a>(&self, quad: impl Into<QuadRef<'a>>) -> Result<(), Error>
[src]
Removes a quad from this store.
This method is optimized for performances and is not atomic. It might leave the store in a bad state if a crash happens during the removal. Use a (memory greedy) transaction if you do not want that.
pub fn dump_graph<'a>(
&self,
writer: impl Write,
format: GraphFormat,
from_graph_name: impl Into<GraphNameRef<'a>>
) -> Result<(), Error>
[src]
&self,
writer: impl Write,
format: GraphFormat,
from_graph_name: impl Into<GraphNameRef<'a>>
) -> Result<(), Error>
Dumps a store graph into a file.
See MemoryStore
for a usage example.
pub fn dump_dataset(
&self,
writer: impl Write,
format: DatasetFormat
) -> Result<(), Error>
[src]
&self,
writer: impl Write,
format: DatasetFormat
) -> Result<(), Error>
Dumps the store into a file.
See MemoryStore
for a usage example.
pub fn named_graphs(&self) -> SledGraphNameIterⓘNotable traits for SledGraphNameIter
impl Iterator for SledGraphNameIter type Item = Result<NamedOrBlankNode, Error>;
[src]
Notable traits for SledGraphNameIter
impl Iterator for SledGraphNameIter type Item = Result<NamedOrBlankNode, Error>;
Returns all the store named graphs
See MemoryStore
for a usage example.
pub fn contains_named_graph<'a>(
&self,
graph_name: impl Into<NamedOrBlankNodeRef<'a>>
) -> Result<bool, Error>
[src]
&self,
graph_name: impl Into<NamedOrBlankNodeRef<'a>>
) -> Result<bool, Error>
Checks if the store contains a given graph
See MemoryStore
for a usage example.
pub fn insert_named_graph<'a>(
&self,
graph_name: impl Into<NamedOrBlankNodeRef<'a>>
) -> Result<(), Error>
[src]
&self,
graph_name: impl Into<NamedOrBlankNodeRef<'a>>
) -> Result<(), Error>
Inserts a graph into this store
See MemoryStore
for a usage example.
pub fn clear_graph<'a>(
&self,
graph_name: impl Into<GraphNameRef<'a>>
) -> Result<(), Error>
[src]
&self,
graph_name: impl Into<GraphNameRef<'a>>
) -> Result<(), Error>
Clears a graph from this store.
See MemoryStore
for a usage example.
pub fn remove_named_graph<'a>(
&self,
graph_name: impl Into<NamedOrBlankNodeRef<'a>>
) -> Result<(), Error>
[src]
&self,
graph_name: impl Into<NamedOrBlankNodeRef<'a>>
) -> Result<(), Error>
Removes a graph from this store.
See MemoryStore
for a usage example.
pub fn clear(&self) -> Result<(), Error>
[src]
Clears the store.
See MemoryStore
for a usage example.
Trait Implementations
impl Clone for SledStore
[src]
impl CollectibleDataset for SledStore
[src]
pub fn from_quad_source<QS: QuadSource>(
quads: QS
) -> StreamResult<Self, QS::Error, Self::Error>
[src]
quads: QS
) -> StreamResult<Self, QS::Error, Self::Error>
impl Dataset for SledStore
[src]
type Quad = ByValue<([Term; 3], Option<Term>)>
Determine the type of Quad
s
that the methods of this dataset will yield
(see streaming_mode
Read more
type Error = Error
The error type that this dataset may raise.
pub fn quads(&self) -> DQuadSource<'_, Self>
[src]
pub fn quads_with_s<'s, TS: ?Sized>(
&'s self,
s: &'s TS
) -> DQuadSource<'s, Self> where
TS: TTerm,
[src]
&'s self,
s: &'s TS
) -> DQuadSource<'s, Self> where
TS: TTerm,
pub fn quads_with_p<'s, TP: ?Sized>(
&'s self,
p: &'s TP
) -> DQuadSource<'s, Self> where
TP: TTerm,
[src]
&'s self,
p: &'s TP
) -> DQuadSource<'s, Self> where
TP: TTerm,
pub fn quads_with_o<'s, TS: ?Sized>(
&'s self,
o: &'s TS
) -> DQuadSource<'s, Self> where
TS: TTerm,
[src]
&'s self,
o: &'s TS
) -> DQuadSource<'s, Self> where
TS: TTerm,
pub fn quads_with_g<'s, TS: ?Sized>(
&'s self,
g: Option<&'s TS>
) -> DQuadSource<'s, Self> where
TS: TTerm,
[src]
&'s self,
g: Option<&'s TS>
) -> DQuadSource<'s, Self> where
TS: TTerm,
pub fn quads_with_sp<'s, TS: ?Sized, TP: ?Sized>(
&'s self,
s: &'s TS,
p: &'s TP
) -> DQuadSource<'s, Self> where
TS: TTerm,
TP: TTerm,
[src]
&'s self,
s: &'s TS,
p: &'s TP
) -> DQuadSource<'s, Self> where
TS: TTerm,
TP: TTerm,
pub fn quads_with_so<'s, TS: ?Sized, TO: ?Sized>(
&'s self,
s: &'s TS,
o: &'s TO
) -> DQuadSource<'s, Self> where
TS: TTerm,
TO: TTerm,
[src]
&'s self,
s: &'s TS,
o: &'s TO
) -> DQuadSource<'s, Self> where
TS: TTerm,
TO: TTerm,
pub fn quads_with_sg<'s, TS: ?Sized, TG: ?Sized>(
&'s self,
s: &'s TS,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TS: TTerm,
TG: TTerm,
[src]
&'s self,
s: &'s TS,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TS: TTerm,
TG: TTerm,
pub fn quads_with_po<'s, TP: ?Sized, TO: ?Sized>(
&'s self,
p: &'s TP,
o: &'s TO
) -> DQuadSource<'s, Self> where
TP: TTerm,
TO: TTerm,
[src]
&'s self,
p: &'s TP,
o: &'s TO
) -> DQuadSource<'s, Self> where
TP: TTerm,
TO: TTerm,
pub fn quads_with_pg<'s, TP: ?Sized, TG: ?Sized>(
&'s self,
p: &'s TP,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TP: TTerm,
TG: TTerm,
[src]
&'s self,
p: &'s TP,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TP: TTerm,
TG: TTerm,
pub fn quads_with_og<'s, TO: ?Sized, TG: ?Sized>(
&'s self,
o: &'s TO,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TO: TTerm,
TG: TTerm,
[src]
&'s self,
o: &'s TO,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TO: TTerm,
TG: TTerm,
pub fn quads_with_spo<'s, TS: ?Sized, TP: ?Sized, TO: ?Sized>(
&'s self,
s: &'s TS,
p: &'s TP,
o: &'s TO
) -> DQuadSource<'s, Self> where
TS: TTerm,
TP: TTerm,
TO: TTerm,
[src]
&'s self,
s: &'s TS,
p: &'s TP,
o: &'s TO
) -> DQuadSource<'s, Self> where
TS: TTerm,
TP: TTerm,
TO: TTerm,
pub fn quads_with_spg<'s, TS: ?Sized, TP: ?Sized, TG: ?Sized>(
&'s self,
s: &'s TS,
p: &'s TP,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TS: TTerm,
TP: TTerm,
TG: TTerm,
[src]
&'s self,
s: &'s TS,
p: &'s TP,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TS: TTerm,
TP: TTerm,
TG: TTerm,
pub fn quads_with_sog<'s, TS: ?Sized, TO: ?Sized, TG: ?Sized>(
&'s self,
s: &'s TS,
o: &'s TO,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TS: TTerm,
TO: TTerm,
TG: TTerm,
[src]
&'s self,
s: &'s TS,
o: &'s TO,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TS: TTerm,
TO: TTerm,
TG: TTerm,
pub fn quads_with_pog<'s, TP: ?Sized, TO: ?Sized, TG: ?Sized>(
&'s self,
p: &'s TP,
o: &'s TO,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TP: TTerm,
TO: TTerm,
TG: TTerm,
[src]
&'s self,
p: &'s TP,
o: &'s TO,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TP: TTerm,
TO: TTerm,
TG: TTerm,
pub fn quads_with_spog<'s, TS: ?Sized, TP: ?Sized, TO: ?Sized, TG: ?Sized>(
&'s self,
s: &'s TS,
p: &'s TP,
o: &'s TO,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TS: TTerm,
TP: TTerm,
TO: TTerm,
TG: TTerm,
[src]
&'s self,
s: &'s TS,
p: &'s TP,
o: &'s TO,
g: Option<&'s TG>
) -> DQuadSource<'s, Self> where
TS: TTerm,
TP: TTerm,
TO: TTerm,
TG: TTerm,
pub fn subjects(&self) -> DResultTermSet<Self> where
DTerm<Self>: Clone + Eq + Hash,
[src]
DTerm<Self>: Clone + Eq + Hash,
pub fn predicates(&self) -> DResultTermSet<Self> where
DTerm<Self>: Clone + Eq + Hash,
[src]
DTerm<Self>: Clone + Eq + Hash,
pub fn objects(&self) -> DResultTermSet<Self> where
DTerm<Self>: Clone + Eq + Hash,
[src]
DTerm<Self>: Clone + Eq + Hash,
pub fn graph_names(&self) -> DResultTermSet<Self> where
DTerm<Self>: Clone + Eq + Hash,
[src]
DTerm<Self>: Clone + Eq + Hash,
pub fn iris(&self) -> DResultTermSet<Self> where
DTerm<Self>: Clone + Eq + Hash,
[src]
DTerm<Self>: Clone + Eq + Hash,
pub fn bnodes(&self) -> DResultTermSet<Self> where
DTerm<Self>: Clone + Eq + Hash,
[src]
DTerm<Self>: Clone + Eq + Hash,
pub fn literals(&self) -> DResultTermSet<Self> where
DTerm<Self>: Clone + Eq + Hash,
[src]
DTerm<Self>: Clone + Eq + Hash,
pub fn variables(&self) -> DResultTermSet<Self> where
DTerm<Self>: Clone + Eq + Hash,
[src]
DTerm<Self>: Clone + Eq + Hash,
pub fn contains<TS, TP, TO, TG>(
&'s self,
s: &'s TS,
p: &'s TP,
o: &'s TO,
g: Option<&'s TG>
) -> Result<bool, Self::Error> where
TO: TTerm + ?Sized,
TS: TTerm + ?Sized,
TP: TTerm + ?Sized,
TG: TTerm + ?Sized,
[src]
&'s self,
s: &'s TS,
p: &'s TP,
o: &'s TO,
g: Option<&'s TG>
) -> Result<bool, Self::Error> where
TO: TTerm + ?Sized,
TS: TTerm + ?Sized,
TP: TTerm + ?Sized,
TG: TTerm + ?Sized,
pub fn quads_matching<S, P, O, G>(
&'s self,
ms: &'s S,
mp: &'s P,
mo: &'s O,
mg: &'s G
) -> Box<dyn Iterator<Item = Result<StreamedQuad<'s, Self::Quad>, Self::Error>> + 's, Global> where
P: TermMatcher + ?Sized,
S: TermMatcher + ?Sized,
O: TermMatcher + ?Sized,
G: GraphNameMatcher + ?Sized,
[src]
&'s self,
ms: &'s S,
mp: &'s P,
mo: &'s O,
mg: &'s G
) -> Box<dyn Iterator<Item = Result<StreamedQuad<'s, Self::Quad>, Self::Error>> + 's, Global> where
P: TermMatcher + ?Sized,
S: TermMatcher + ?Sized,
O: TermMatcher + ?Sized,
G: GraphNameMatcher + ?Sized,
pub fn graph<T>(
&'s self,
graph_name: Option<&'s T>
) -> DatasetGraph<Self, &'s Self, Option<&'s T>> where
T: TTerm + ?Sized,
[src]
&'s self,
graph_name: Option<&'s T>
) -> DatasetGraph<Self, &'s Self, Option<&'s T>> where
T: TTerm + ?Sized,
pub fn graph_mut<T>(
&'s mut self,
graph_name: Option<&'s T>
) -> DatasetGraph<Self, &'s mut Self, Option<&'s T>> where
T: TTerm + ?Sized,
[src]
&'s mut self,
graph_name: Option<&'s T>
) -> DatasetGraph<Self, &'s mut Self, Option<&'s T>> where
T: TTerm + ?Sized,
pub fn union_graph<'s, T>(
&'s self,
gmatcher: T
) -> DatasetGraph<Self, &'s Self, T> where
T: GraphNameMatcher + 's,
[src]
&'s self,
gmatcher: T
) -> DatasetGraph<Self, &'s Self, T> where
T: GraphNameMatcher + 's,
impl Display for SledStore
[src]
impl MutableDataset for SledStore
[src]
type MutationError = Error
The error type that this dataset may raise during mutations.
pub fn insert<TS: ?Sized, TP: ?Sized, TO: ?Sized, TG: ?Sized>(
&mut self,
s: &TS,
p: &TP,
o: &TO,
g: Option<&TG>
) -> MDResult<Self, bool> where
TS: TTerm,
TP: TTerm,
TO: TTerm,
TG: TTerm,
[src]
&mut self,
s: &TS,
p: &TP,
o: &TO,
g: Option<&TG>
) -> MDResult<Self, bool> where
TS: TTerm,
TP: TTerm,
TO: TTerm,
TG: TTerm,
pub fn remove<TS: ?Sized, TP: ?Sized, TO: ?Sized, TG: ?Sized>(
&mut self,
s: &TS,
p: &TP,
o: &TO,
g: Option<&TG>
) -> MDResult<Self, bool> where
TS: TTerm,
TP: TTerm,
TO: TTerm,
TG: TTerm,
[src]
&mut self,
s: &TS,
p: &TP,
o: &TO,
g: Option<&TG>
) -> MDResult<Self, bool> where
TS: TTerm,
TP: TTerm,
TO: TTerm,
TG: TTerm,
pub fn insert_all<QS>(
&mut self,
src: QS
) -> Result<usize, StreamError<<QS as QuadSource>::Error, Self::MutationError>> where
QS: QuadSource,
[src]
&mut self,
src: QS
) -> Result<usize, StreamError<<QS as QuadSource>::Error, Self::MutationError>> where
QS: QuadSource,
pub fn remove_all<QS>(
&mut self,
src: QS
) -> Result<usize, StreamError<<QS as QuadSource>::Error, Self::MutationError>> where
QS: QuadSource,
[src]
&mut self,
src: QS
) -> Result<usize, StreamError<<QS as QuadSource>::Error, Self::MutationError>> where
QS: QuadSource,
pub fn remove_matching<S, P, O, G>(
&mut self,
ms: &S,
mp: &P,
mo: &O,
mg: &G
) -> Result<usize, Self::MutationError> where
P: TermMatcher + ?Sized,
S: TermMatcher + ?Sized,
O: TermMatcher + ?Sized,
G: GraphNameMatcher + ?Sized,
<<Self::Quad as QuadStreamingMode>::UnsafeQuad as UnsafeQuad>::Term: Clone,
Self::Error: Into<Self::MutationError>,
[src]
&mut self,
ms: &S,
mp: &P,
mo: &O,
mg: &G
) -> Result<usize, Self::MutationError> where
P: TermMatcher + ?Sized,
S: TermMatcher + ?Sized,
O: TermMatcher + ?Sized,
G: GraphNameMatcher + ?Sized,
<<Self::Quad as QuadStreamingMode>::UnsafeQuad as UnsafeQuad>::Term: Clone,
Self::Error: Into<Self::MutationError>,
pub fn retain_matching<S, P, O, G>(
&mut self,
ms: &S,
mp: &P,
mo: &O,
mg: &G
) -> Result<(), Self::MutationError> where
P: TermMatcher + ?Sized,
S: TermMatcher + ?Sized,
O: TermMatcher + ?Sized,
G: GraphNameMatcher + ?Sized,
<<Self::Quad as QuadStreamingMode>::UnsafeQuad as UnsafeQuad>::Term: Clone,
Self::Error: Into<Self::MutationError>,
[src]
&mut self,
ms: &S,
mp: &P,
mo: &O,
mg: &G
) -> Result<(), Self::MutationError> where
P: TermMatcher + ?Sized,
S: TermMatcher + ?Sized,
O: TermMatcher + ?Sized,
G: GraphNameMatcher + ?Sized,
<<Self::Quad as QuadStreamingMode>::UnsafeQuad as UnsafeQuad>::Term: Clone,
Self::Error: Into<Self::MutationError>,
Auto Trait Implementations
impl !RefUnwindSafe for SledStore
[src]
impl Send for SledStore
[src]
impl Sync for SledStore
[src]
impl Unpin for SledStore
[src]
impl !UnwindSafe for SledStore
[src]
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> Conv for T
impl<T> Conv for T
impl<T> FmtForward for T
pub fn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
Self: Binary,
pub fn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
Self: Display,
pub fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
Self: LowerExp,
pub fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
Self: LowerHex,
pub fn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
Self: Octal,
pub fn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
Self: Pointer,
pub fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
Self: UpperExp,
pub fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
Self: UpperHex,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pipe for T where
T: ?Sized,
T: ?Sized,
pub fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
pub fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
R: 'a,
pub fn pipe_ref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self) -> R
) -> R where
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut Self) -> R
) -> R where
R: 'a,
pub fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R where
Self: Borrow<B>,
R: 'a,
B: 'a + ?Sized,
Self: Borrow<B>,
R: 'a,
B: 'a + ?Sized,
pub fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
Self: BorrowMut<B>,
R: 'a,
B: 'a + ?Sized,
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
Self: BorrowMut<B>,
R: 'a,
B: 'a + ?Sized,
pub fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R where
Self: AsRef<U>,
R: 'a,
U: 'a + ?Sized,
Self: AsRef<U>,
R: 'a,
U: 'a + ?Sized,
pub fn pipe_as_mut<'a, U, R>(
&'a mut self,
func: impl FnOnce(&'a mut U) -> R
) -> R where
Self: AsMut<U>,
R: 'a,
U: 'a + ?Sized,
&'a mut self,
func: impl FnOnce(&'a mut U) -> R
) -> R where
Self: AsMut<U>,
R: 'a,
U: 'a + ?Sized,
pub fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
pub fn pipe_deref_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: DerefMut<Target = T> + Deref,
T: 'a + ?Sized,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: DerefMut<Target = T> + Deref,
T: 'a + ?Sized,
R: 'a,
impl<T> Pipe for T
impl<T> PipeAsRef for T
pub fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: AsRef<T>,
T: 'a,
R: 'a,
Self: AsRef<T>,
T: 'a,
R: 'a,
pub fn pipe_as_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: AsMut<T>,
T: 'a,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: AsMut<T>,
T: 'a,
R: 'a,
impl<T> PipeBorrow for T
pub fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Borrow<T>,
T: 'a,
R: 'a,
Self: Borrow<T>,
T: 'a,
R: 'a,
pub fn pipe_borrow_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
T: 'a,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
T: 'a,
R: 'a,
impl<T> PipeDeref for T
pub fn pipe_deref<'a, R>(
&'a self,
func: impl FnOnce(&'a Self::Target) -> R
) -> R where
Self: Deref,
R: 'a,
&'a self,
func: impl FnOnce(&'a Self::Target) -> R
) -> R where
Self: Deref,
R: 'a,
pub fn pipe_deref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
impl<T> PipeRef for T
pub fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
R: 'a,
pub fn pipe_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
R: 'a,
R: 'a,
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> Same<T> for T
type Output = T
Should always be Self
impl<T> Tap for T
pub fn tap(self, func: impl FnOnce(&Self)) -> Self
pub fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self
pub fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
Self: Borrow<B>,
B: ?Sized,
pub fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
Self: BorrowMut<B>,
B: ?Sized,
pub fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
Self: AsRef<R>,
R: ?Sized,
pub fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
Self: AsMut<R>,
R: ?Sized,
pub fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self where
Self: Deref<Target = T>,
T: ?Sized,
Self: Deref<Target = T>,
T: ?Sized,
pub fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self where
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
pub fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
pub fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
pub fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
Self: Borrow<B>,
B: ?Sized,
pub fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
Self: BorrowMut<B>,
B: ?Sized,
pub fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
Self: AsRef<R>,
R: ?Sized,
pub fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
Self: AsMut<R>,
R: ?Sized,
pub fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self where
Self: Deref<Target = T>,
T: ?Sized,
Self: Deref<Target = T>,
T: ?Sized,
pub fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self where
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
impl<T> Tap for T
pub fn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
pub fn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
pub fn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
F: FnOnce(&mut Self) -> R,
pub fn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
F: FnOnce(&mut Self) -> R,
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
U: ?Sized,
pub fn tap_ref<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Self: AsRef<T>,
F: FnOnce(&T) -> R,
pub fn tap_ref_dbg<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Self: AsRef<T>,
F: FnOnce(&T) -> R,
pub fn tap_ref_mut<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
pub fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
U: ?Sized,
pub fn tap_borrow<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Self: Borrow<T>,
F: FnOnce(&T) -> R,
pub fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Self: Borrow<T>,
F: FnOnce(&T) -> R,
pub fn tap_borrow_mut<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
pub fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
impl<T> TapDeref for T
pub fn tap_deref<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Self: Deref,
F: FnOnce(&Self::Target) -> R,
pub fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Self: Deref,
F: FnOnce(&Self::Target) -> R,
pub fn tap_deref_mut<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
pub fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> TryConv for T
impl<T> TryConv for T
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>,