pub struct Collections { /* private fields */ }Implementations§
Source§impl Collections
impl Collections
pub fn open( root: impl AsRef<Path>, durability: Durability, ) -> Result<Self, IndexError>
pub fn create( &self, name: &str, config: IndexConfig, ) -> Result<Arc<MultiVectorIndex>, IndexError>
pub fn get(&self, name: &str) -> Option<Arc<MultiVectorIndex>>
pub fn names(&self) -> Vec<String>
Auto Trait Implementations§
impl !Freeze for Collections
impl RefUnwindSafe for Collections
impl Send for Collections
impl Sync for Collections
impl Unpin for Collections
impl UnsafeUnpin for Collections
impl UnwindSafe for Collections
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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 more