pub struct Chain { /* private fields */ }Implementations§
Source§impl Chain
impl Chain
pub fn new() -> Self
pub fn size(&self) -> usize
pub fn add<P: AsRef<Path>>(&mut self, path: P) -> Result<(), Error>
pub fn read(&mut self, filename: &str) -> Result<Vec<u8>, Error>
pub fn list(&mut self) -> Result<Vec<String>, Error>
pub fn read_to_string(&mut self, filename: &str) -> Result<String, Error>
pub fn extract<P: AsRef<Path>>( &mut self, filename: &str, path: P, ) -> Result<usize, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnwindSafe for Chain
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