pub struct TextCollection { /* private fields */ }Expand description
Collection of all desc texts from which queriers may access data.
Implementations§
Source§impl TextCollection
impl TextCollection
Sourcepub fn iter_mut(&mut self) -> TextIterMut<'_> ⓘ
pub fn iter_mut(&mut self) -> TextIterMut<'_> ⓘ
Iterate over mutable references to the items inside.
Source§impl TextCollection
impl TextCollection
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create an empty text collection with specified capacity.
Source§impl TextCollection
impl TextCollection
Sourcepub fn parse<'a, Querier>(
&'a self,
) -> Result<QueryDatabase<'a, Querier>, TextCollectionParseError<<&'a str as TryInto<Querier>>::Error>>
pub fn parse<'a, Querier>( &'a self, ) -> Result<QueryDatabase<'a, Querier>, TextCollectionParseError<<&'a str as TryInto<Querier>>::Error>>
Parse a database of immutable queriers.
Sourcepub fn parse_mut<'a, Querier>(
&'a self,
) -> Result<QueryDatabase<'a, Querier>, TextCollectionParseError<<&'a str as TryInto<Querier>>::Error>>
pub fn parse_mut<'a, Querier>( &'a self, ) -> Result<QueryDatabase<'a, Querier>, TextCollectionParseError<<&'a str as TryInto<Querier>>::Error>>
Parse a database of mutable queriers.
Sourcepub fn par_parse<'a, Querier>(
&'a self,
) -> Result<QueryDatabase<'a, Querier>, TextCollectionParseError<<&'a str as TryInto<Querier>>::Error>>
pub fn par_parse<'a, Querier>( &'a self, ) -> Result<QueryDatabase<'a, Querier>, TextCollectionParseError<<&'a str as TryInto<Querier>>::Error>>
Parse a database of immutable queriers in parallel.
Sourcepub fn par_parse_mut<'a, Querier>(
&'a self,
) -> Result<QueryDatabase<'a, Querier>, TextCollectionParseError<<&'a str as TryInto<Querier>>::Error>>
pub fn par_parse_mut<'a, Querier>( &'a self, ) -> Result<QueryDatabase<'a, Querier>, TextCollectionParseError<<&'a str as TryInto<Querier>>::Error>>
Parse a database of mutable queriers in parallel.
Source§impl TextCollection
impl TextCollection
Sourcepub fn extend_from_gz<Bytes: Read>(
&mut self,
bytes: Bytes,
) -> Result<(), LoadGzError>
pub fn extend_from_gz<Bytes: Read>( &mut self, bytes: Bytes, ) -> Result<(), LoadGzError>
Extract a gzipped archive and add contents from its desc files to the text collection.
Sourcepub fn add_gz<Bytes: Read>(self, bytes: Bytes) -> Result<Self, LoadGzError>
pub fn add_gz<Bytes: Read>(self, bytes: Bytes) -> Result<Self, LoadGzError>
Extract a gzipped archive and add contents from its desc files to the text collection.
Sourcepub fn from_gz<Bytes: Read>(bytes: Bytes) -> Result<Self, LoadGzError>
pub fn from_gz<Bytes: Read>(bytes: Bytes) -> Result<Self, LoadGzError>
Extract a gzipped archive and add contents from its desc files to the text collection.
Source§impl TextCollection
impl TextCollection
Sourcepub fn extend_from_tar<Bytes: Read>(
&mut self,
bytes: Bytes,
) -> Result<(), LoadTarError>
pub fn extend_from_tar<Bytes: Read>( &mut self, bytes: Bytes, ) -> Result<(), LoadTarError>
Traverse a tar archive and add contents from desc files to the text collection.
Sourcepub fn add_tar<Bytes: Read>(self, bytes: Bytes) -> Result<Self, LoadTarError>
pub fn add_tar<Bytes: Read>(self, bytes: Bytes) -> Result<Self, LoadTarError>
Traverse a tar archive and add contents from desc files to the text collection.
Sourcepub fn from_tar<Bytes: Read>(bytes: Bytes) -> Result<Self, LoadTarError>
pub fn from_tar<Bytes: Read>(bytes: Bytes) -> Result<Self, LoadTarError>
Traverse a tar archive and add contents from desc files to the text collection.
Source§impl TextCollection
impl TextCollection
Sourcepub fn extend_from_xz<Bytes: Read>(
&mut self,
bytes: Bytes,
) -> Result<(), LoadXzError>
pub fn extend_from_xz<Bytes: Read>( &mut self, bytes: Bytes, ) -> Result<(), LoadXzError>
Extract an xz archive and add contents from its desc files to the text collection.
Sourcepub fn add_xz<Bytes: Read>(self, bytes: Bytes) -> Result<Self, LoadXzError>
pub fn add_xz<Bytes: Read>(self, bytes: Bytes) -> Result<Self, LoadXzError>
Extract an xz archive and add contents from its desc files to the text collection.
Sourcepub fn from_xz<Bytes: Read>(bytes: Bytes) -> Result<Self, LoadXzError>
pub fn from_xz<Bytes: Read>(bytes: Bytes) -> Result<Self, LoadXzError>
Extract an xz archive and add contents from its desc files to the text collection.
Source§impl TextCollection
impl TextCollection
Sourcepub fn extend_from_archive(
&mut self,
bytes: &[u8],
) -> Result<(), LoadArchiveError>
pub fn extend_from_archive( &mut self, bytes: &[u8], ) -> Result<(), LoadArchiveError>
Detect mime type of an archive, extract it, and add contents from desc files to the text collection.
Sourcepub fn add_archive(self, bytes: &[u8]) -> Result<Self, LoadArchiveError>
pub fn add_archive(self, bytes: &[u8]) -> Result<Self, LoadArchiveError>
Detect mime type of an archive, extract it, and add contents from desc files to the text collection.
Sourcepub fn from_archive(bytes: &[u8]) -> Result<Self, LoadArchiveError>
pub fn from_archive(bytes: &[u8]) -> Result<Self, LoadArchiveError>
Detect mime type of an archive, extract it, and add contents from desc files to the text collection.
Source§impl TextCollection
impl TextCollection
Sourcepub fn extend_from_local_db<'path>(
&mut self,
local_db_path: &'path Path,
) -> Result<(), LoadLocalDbError<'path>>
pub fn extend_from_local_db<'path>( &mut self, local_db_path: &'path Path, ) -> Result<(), LoadLocalDbError<'path>>
Load data from a local pacman database.
A local pacman database is a directory usually located at $ARCH_ROOT/var/lib/pacman/local/.
Sourcepub fn add_local_db(
self,
local_db_path: &Path,
) -> Result<Self, LoadLocalDbError<'_>>
pub fn add_local_db( self, local_db_path: &Path, ) -> Result<Self, LoadLocalDbError<'_>>
Load data from a local pacman database.
A local pacman database is a directory usually located at $ARCH_ROOT/var/lib/pacman/local/.
Sourcepub fn from_local_db(local_db_path: &Path) -> Result<Self, LoadLocalDbError<'_>>
pub fn from_local_db(local_db_path: &Path) -> Result<Self, LoadLocalDbError<'_>>
Load data from a local pacman database.
A local pacman database is a directory usually located at $ARCH_ROOT/var/lib/pacman/local/.
Sourcepub fn par_extend_from_local_db<'path>(
&mut self,
local_db_path: &'path Path,
) -> Result<(), LoadLocalDbError<'path>>
pub fn par_extend_from_local_db<'path>( &mut self, local_db_path: &'path Path, ) -> Result<(), LoadLocalDbError<'path>>
Load data from a local pacman database in parallel.
A local pacman database is a directory usually located at $ARCH_ROOT/var/lib/pacman/local/.
Sourcepub fn par_add_local_db(
self,
local_db_path: &Path,
) -> Result<Self, LoadLocalDbError<'_>>
pub fn par_add_local_db( self, local_db_path: &Path, ) -> Result<Self, LoadLocalDbError<'_>>
Load data from a local pacman database in parallel.
A local pacman database is a directory usually located at $ARCH_ROOT/var/lib/pacman/local/.
Sourcepub fn par_from_local_db(
local_db_path: &Path,
) -> Result<Self, LoadLocalDbError<'_>>
pub fn par_from_local_db( local_db_path: &Path, ) -> Result<Self, LoadLocalDbError<'_>>
Load data from a local pacman database in parallel.
A local pacman database is a directory usually located at $ARCH_ROOT/var/lib/pacman/local/.
Trait Implementations§
Source§impl Clone for TextCollection
impl Clone for TextCollection
Source§fn clone(&self) -> TextCollection
fn clone(&self) -> TextCollection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TextCollection
impl Debug for TextCollection
Source§impl Default for TextCollection
impl Default for TextCollection
Source§fn default() -> TextCollection
fn default() -> TextCollection
Source§impl Extend<Text> for TextCollection
impl Extend<Text> for TextCollection
Source§fn extend<Iter: IntoIterator<Item = Text>>(&mut self, iter: Iter)
fn extend<Iter: IntoIterator<Item = Text>>(&mut self, iter: Iter)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<Text> for TextCollection
impl FromIterator<Text> for TextCollection
Source§impl<'a> IntoIterator for &'a TextCollection
impl<'a> IntoIterator for &'a TextCollection
Source§impl<'a> IntoIterator for &'a mut TextCollection
impl<'a> IntoIterator for &'a mut TextCollection
Auto Trait Implementations§
impl Freeze for TextCollection
impl RefUnwindSafe for TextCollection
impl Send for TextCollection
impl Sync for TextCollection
impl Unpin for TextCollection
impl UnwindSafe for TextCollection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Main> IntoAttached for Main
impl<Main> IntoAttached for Main
Source§fn into_attached<Attachment>(
self,
attachment: Attachment,
) -> Attached<Self, Attachment>
fn into_attached<Attachment>( self, attachment: Attachment, ) -> Attached<Self, Attachment>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Is for T
impl<T> Is for T
type Type = T
fn into_val(self) -> <T as Is>::Type
fn into_ref(&self) -> &<T as Is>::Type
fn into_mut_ref(&mut self) -> &mut <T as Is>::Type
fn from_val(x: <T as Is>::Type) -> T
fn from_ref(x: &<T as Is>::Type) -> &T
fn from_mut_ref(x: &mut <T as Is>::Type) -> &mut T
Source§impl<X> Pipe for X
impl<X> Pipe for X
Source§fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
Source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
Source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
f to &self where f takes a single parameter of type Param
and Self implements trait AsRef<Param>. Read moreSource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
f to &mut self where f takes a single parameter of type Param
and Self implements trait AsMut<Param>. Read moreSource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
f to &self where f takes a single parameter of type Param
and Self implements trait Deref<Target = Param>. Read moreSource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
f to &mut self where f takes a single parameter of type Param
and Self implements trait DerefMut<Target = Param>. Read moreSource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
f to &self where f takes a single parameter of type Param
and Self implements trait Borrow<Param>. Read moreSource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
f to &mut self where f takes a single parameter of type Param
and Self implements trait BorrowMut<Param>. Read more