pub struct Arx {
pub container: Container,
pub root_index: Index,
pub properties: AllProperties,
}
Fields§
§container: Container
§root_index: Index
§properties: AllProperties
Implementations§
Source§impl Arx
impl Arx
pub fn new<P: AsRef<Path>>(file: P) -> Result<Self>
pub fn create_properties(&self, index: &Index) -> Result<AllProperties>
pub fn get_entry<B>(&self, path: &Path) -> Result<Entry<B::Entry>>where
B: FullBuilderTrait,
pub fn get_entry_at_idx<B>(&self, idx: EntryIdx) -> Result<Entry<B::Entry>>where
B: FullBuilderTrait,
Methods from Deref<Target = Container>§
Sourcepub fn pack_count(&self) -> PackCount
pub fn pack_count(&self) -> PackCount
The number of packs in the container.
pub fn get_pack( &self, pack_id: PackId, ) -> Result<MayMissPack<&ContentPack>, Error>
pub fn get_bytes( &self, content: ContentAddress, ) -> Result<MayMissPack<ByteRegion>, Error>
Sourcepub fn get_directory_pack(&self) -> &Arc<DirectoryPack>
pub fn get_directory_pack(&self) -> &Arc<DirectoryPack>
Get the directory pack of the container
Sourcepub fn get_value_storage(&self) -> &Arc<ValueStorage>
pub fn get_value_storage(&self) -> &Arc<ValueStorage>
Get the value storage of the container
Sourcepub fn get_entry_storage(&self) -> &Arc<EntryStorage>
pub fn get_entry_storage(&self) -> &Arc<EntryStorage>
Get the entry storage of the container
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Arx
impl !RefUnwindSafe for Arx
impl Send for Arx
impl Sync for Arx
impl Unpin for Arx
impl !UnwindSafe for Arx
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
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