pub struct PackSet { /* private fields */ }Implementations§
Source§impl PackSet
impl PackSet
pub fn open_all(packs_dir: &Path) -> Result<Self>
pub fn open_selected(packs_dir: &Path, pack_hashes: &[String]) -> Result<Self>
pub fn empty() -> Self
pub fn try_read(&self, hash_hex: &str) -> Option<Vec<u8>>
pub fn contains_bytes(&self, hash: &[u8; 16]) -> bool
pub fn read(&self, hash_hex: &str) -> Result<Vec<u8>>
pub fn locate_bytes(&self, hash: &[u8; 16]) -> Option<PackLocation>
Auto Trait Implementations§
impl Freeze for PackSet
impl RefUnwindSafe for PackSet
impl Send for PackSet
impl Sync for PackSet
impl Unpin for PackSet
impl UnsafeUnpin for PackSet
impl UnwindSafe for PackSet
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